FormField<T> constructor

const FormField<T>({
  1. Key? key,
  2. required T initialValue,
  3. String? validator(
    1. T?
    )?,
  4. void onSaved(
    1. T
    )?,
  5. required Widget builder(
    1. FormFieldState<T>
    ),
})

Creates a FormField with the given initialValue and optional validator.

Implementation

const FormField({
  super.key,
  required this.initialValue,
  this.validator,
  this.onSaved,
  required this.builder,
});