SunnyForm<T> constructor
SunnyForm<T> (
- String name, {
- required FormControllerCreator form,
- required Widget child,
- bool isActive = true,
- bool isSliver = false,
- bool? bindCommand,
- SubmitHook? submitHook,
- FormValidator? validate,
- 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"));