FormField<T> constructor

const FormField<T>({
  1. Key? key,
  2. required FormFieldBuilder<T> builder,
  3. FormFieldSetter<T>? onSaved,
  4. String? forceErrorText,
  5. FormFieldValidator<T>? validator,
  6. T? initialValue,
  7. bool enabled = true,
  8. AutovalidateMode? autovalidateMode,
  9. String? restorationId,
})

Creates a single form field.

Implementation

const FormField({
  super.key,
  required this.builder,
  this.onSaved,
  this.forceErrorText,
  this.validator,
  this.initialValue,
  this.enabled = true,
  AutovalidateMode? autovalidateMode,
  this.restorationId,
}) : autovalidateMode = autovalidateMode ?? AutovalidateMode.disabled;