ModelBuilder<TModel extends IObservable<BaseEvent>, TEvent extends BaseEvent> constructor

const ModelBuilder<TModel extends IObservable<BaseEvent>, TEvent extends BaseEvent>({
  1. required TModel model,
  2. required Widget builder(
    1. BuildContext context,
    2. TModel model,
    3. TEvent? previousEvent,
    4. TEvent? event,
    ),
  3. bool buildWhen(
    1. TModel model,
    2. TEvent? previous,
    3. TEvent? current
    )?,
  4. void listener(
    1. TEvent? previous,
    2. TEvent? current
    )?,
})

Implementation

const ModelBuilder(
    {required this.model,
    required this.builder,
    this.buildWhen,
    this.listener});