FormField<T> constructor

const FormField<T>({Key key, @required FormFieldBuilder<T> builder, FormFieldSetter<T> onSaved, FormFieldValidator<T> validator, T initialValue, bool autovalidate: false, bool enabled: true })

Creates a single form field.

The builder argument must not be null.

Implementation

const FormField({
  Key key,
  @required this.builder,
  this.onSaved,
  this.validator,
  this.initialValue,
  this.autovalidate = false,
  this.enabled = true,
}) : assert(builder != null),
     super(key: key);