ShadForm constructor
const
ShadForm({
- Key? key,
- required Widget child,
- VoidCallback? onChanged,
- bool? canPop,
- @Deprecated('Use onPopInvokedWithResult instead') void onPopInvoked()?,
- PopInvokedWithResultCallback<
Object?> ? onPopInvokedWithResult, - ShadAutovalidateMode autovalidateMode = ShadAutovalidateMode.alwaysAfterFirstValidation,
- Map<
String, dynamic> initialValue = const {}, - bool enabled = true,
- bool skipDisabled = false,
- bool clearValueOnUnregister = false,
- 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 = '.',
});