SunnyForm<T> constructor

SunnyForm<T>(
  1. String name, {
  2. required FormControllerCreator form,
  3. required Widget child,
  4. bool isActive = true,
  5. bool isSliver = false,
  6. bool? bindCommand,
  7. SubmitHook? submitHook,
  8. FormValidator? validate,
  9. bool? skipIfUnmodified,
})

Implementation

SunnyForm(
  this.name, {

  /// A builder for the form instance
  required this.form,
  required Widget this.child,
  this.isActive = true,
  this.isSliver = false,
  this.bindCommand,

  /// Code to execute when the form submits.  This essentially registers a callback hook to this form
  this.submitHook,

  /// A submit hook that runs during the validation phase
  this.validate,
  this.skipIfUnmodified,
})  : builder = null,
      super(key: Key("sunny-form-$name"));