FormField<T> constructor
- Key? key,
- required FormFieldBuilder<
T> builder, - FormFieldSetter<
T> ? onSaved, - String? forceErrorText,
- FormFieldValidator<
T> ? validator, - T? initialValue,
- bool enabled = true,
- AutovalidateMode? autovalidateMode,
- 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;