Forme constructor
const
Forme({
- FormeKey? key,
- FormeFieldStatusChanged? onFieldStatusChanged,
- required Widget child,
- Map<
String, dynamic> initialValue = const <String, dynamic>{}, - WillPopCallback? onWillPop,
- bool quietlyValidate = false,
- AutovalidateMode? autovalidateMode,
- bool autovalidateByOrder = false,
- void onFieldsRegistered(
- List<
FormeFieldState> fields
- List<
- void onFieldsUnregistered(
- List<
FormeFieldState> fields
- List<
- ValueChanged<
FormeState> ? onInitialized,
Implementation
const Forme({
FormeKey? key,
this.onFieldStatusChanged,
required this.child,
this.initialValue = const <String, dynamic>{},
this.onWillPop,
this.quietlyValidate = false,
AutovalidateMode? autovalidateMode,
this.autovalidateByOrder = false,
this.onFieldsRegistered,
this.onFieldsUnregistered,
this.onInitialized,
}) : autovalidateMode = autovalidateMode ?? AutovalidateMode.disabled,
super(key: key);