FormBuilder constructor

const FormBuilder({
  1. Key? key,
  2. required Widget child,
  3. VoidCallback? onChanged,
  4. AutovalidateMode? autovalidateMode,
  5. void onPopInvoked(
    1. bool
    )?,
  6. Map<String, dynamic> initialValue = const <String, dynamic>{},
  7. bool skipDisabled = false,
  8. bool enabled = true,
  9. bool clearValueOnUnregister = false,
  10. bool? canPop,
})

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.onPopInvoked,
  this.initialValue = const <String, dynamic>{},
  this.skipDisabled = false,
  this.enabled = true,
  this.clearValueOnUnregister = false,
  this.canPop,
});