Forme constructor

const Forme({
  1. FormeKey? key,
  2. FormeFieldStatusChanged? onFieldStatusChanged,
  3. required Widget child,
  4. Map<String, dynamic> initialValue = const <String, dynamic>{},
  5. WillPopCallback? onWillPop,
  6. bool quietlyValidate = false,
  7. AutovalidateMode? autovalidateMode,
  8. bool autovalidateByOrder = false,
  9. void onFieldsRegistered(
    1. List<FormeFieldState> fields
    )?,
  10. void onFieldsUnregistered(
    1. List<FormeFieldState> fields
    )?,
  11. 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);