ShadForm constructor

const ShadForm({
  1. Key? key,
  2. required Widget child,
  3. VoidCallback? onChanged,
  4. bool? canPop,
  5. @Deprecated('Use onPopInvokedWithResult instead') void onPopInvoked(
    1. bool
    )?,
  6. PopInvokedWithResultCallback<Object?>? onPopInvokedWithResult,
  7. ShadAutovalidateMode autovalidateMode = ShadAutovalidateMode.alwaysAfterFirstValidation,
  8. Map<String, dynamic> initialValue = const {},
  9. bool enabled = true,
  10. bool skipDisabled = false,
  11. bool clearValueOnUnregister = false,
  12. String? fieldIdSeparator = '.',
})

Implementation

const ShadForm({
  super.key,
  required this.child,
  this.onChanged,
  this.canPop,
  @Deprecated('Use onPopInvokedWithResult instead') this.onPopInvoked,
  this.onPopInvokedWithResult,
  this.autovalidateMode = ShadAutovalidateMode.alwaysAfterFirstValidation,
  this.initialValue = const {},
  this.enabled = true,
  this.skipDisabled = false,
  this.clearValueOnUnregister = false,
  this.fieldIdSeparator = '.',
});