SunnyForm<T>.builder constructor
SunnyForm<T>.builder (
- String name, {
- FormControllerCreator? form,
- required WidgetBuilderWithForm? builder,
- bool isActive = true,
- bool? skipIfUnmodified,
- bool? bindCommand,
- bool isSliver = false,
- FormValidator? validate,
- SubmitHook? submitHook,
Implementation
SunnyForm.builder(
this.name, {
FormControllerCreator? form,
required this.builder,
this.isActive = true,
this.skipIfUnmodified,
this.bindCommand,
this.isSliver = false,
this.validate,
this.submitHook,
}) : assert(builder != null),
child = null,
form = form ??
((context) {
return FormController.ofMap(context, {}, name: name);
}),
super(key: Key("sunny-form-$name"));