FormBuilder constructor
const
FormBuilder({
- Key? key,
- required Widget child,
- VoidCallback? onChanged,
- AutovalidateMode? autovalidateMode,
- WillPopCallback? onWillPop,
- Map<
String, dynamic> initialValue = const <String, dynamic>{}, - bool skipDisabled = false,
- bool enabled = true,
- bool autoFocusOnValidationFailure = false,
- bool clearValueOnUnregister = false,
Creates a container for form fields.
The child argument must not be null.
Implementation
const FormBuilder({
super.key,
required this.child,
this.onChanged,
this.autovalidateMode,
this.onWillPop,
this.initialValue = const <String, dynamic>{},
this.skipDisabled = false,
this.enabled = true,
this.autoFocusOnValidationFailure = false,
this.clearValueOnUnregister = false,
});