FormFieldModifier<T> constructor
const
FormFieldModifier<T> ({
- Key? key,
- Widget? child,
- Key? modifierKey,
- required FormFieldModifierBuilder<
T> builder, - FormFieldSetter<
T> ? onSaved, - FormFieldValidator<
T> ? validator, - T? initialValue,
- bool enabled = true,
- AutovalidateMode? autovalidateMode,
- String? restorationId,
Creates a single form field.
The builder
argument must not be null.
Implementation
const FormFieldModifier({
super.key,
super.child,
super.modifierKey,
required this.builder,
this.onSaved,
this.validator,
this.initialValue,
this.enabled = true,
AutovalidateMode? autovalidateMode,
this.restorationId,
}) : autovalidateMode = autovalidateMode ?? AutovalidateMode.disabled;