SunnyForm<T>.builder constructor

SunnyForm<T>.builder(
  1. String name, {
  2. FormControllerCreator? form,
  3. required WidgetBuilderWithForm? builder,
  4. bool isActive = true,
  5. bool? skipIfUnmodified,
  6. bool? bindCommand,
  7. bool isSliver = false,
  8. FormValidator? validate,
  9. 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"));