FieldModelBuilder<TSource, TDestination> constructor

const FieldModelBuilder<TSource, TDestination>({
  1. FieldModelRebuild rebuildWhen = FieldModelRebuild.change,
  2. required FieldModel<TSource, TDestination> field,
  3. required Widget builder(
    1. BuildContext context,
    2. FieldModel<TSource, TDestination> field,
    3. BaseEvent? previousEvent,
    4. BaseEvent? event,
    ),
  4. void listener(
    1. BaseEvent? previous,
    2. BaseEvent? current
    )?,
  5. bool buildWhen(
    1. FieldModel<TSource, TDestination> field,
    2. BaseEvent? previous,
    3. BaseEvent? current
    )?,
})

Implementation

const FieldModelBuilder(
    {this.rebuildWhen = FieldModelRebuild.change,
    required FieldModel<TSource, TDestination> field,
    required Widget Function(
            BuildContext context,
            FieldModel<TSource, TDestination> field,
            BaseEvent? previousEvent,
            BaseEvent? event)
        builder,
    void Function(BaseEvent? previous, BaseEvent? current)? listener,
    bool Function(FieldModel<TSource, TDestination> field,
            BaseEvent? previous, BaseEvent? current)?
        buildWhen})
    : super(
          builder: builder,
          model: field,
          buildWhen: buildWhen,
          listener: listener);