FormFieldModelBuilder<TModel extends FormModel> constructor

const FormFieldModelBuilder<TModel extends FormModel>({
  1. FieldModelRebuild rebuildWhen = FieldModelRebuild.change,
  2. Iterable<FieldModel> fields(
    1. TModel form
    )?,
  3. required TModel form,
  4. required Widget builder(
    1. BuildContext context,
    2. TModel form,
    3. BaseEvent? previousEvent,
    4. BaseEvent? event,
    ),
  5. void listener(
    1. BaseEvent? previous,
    2. BaseEvent? current
    )?,
  6. bool buildWhen(
    1. TModel model,
    2. BaseEvent? previous,
    3. BaseEvent? current
    )?,
})

Implementation

const FormFieldModelBuilder(
    {this.rebuildWhen = FieldModelRebuild.change,
    this.fields,
    required TModel form,
    required Widget Function(BuildContext context, TModel form,
            BaseEvent? previousEvent, BaseEvent? event)
        builder,
    void Function(BaseEvent? previous, BaseEvent? current)? listener,
    bool Function(TModel model, BaseEvent? previous, BaseEvent? current)?
        buildWhen})
    : super(
          builder: builder,
          model: form,
          buildWhen: buildWhen,
          listener: listener);