WidgetModelBuilder<TEvent extends BaseEvent, TModel extends IObservable<TEvent> > constructor
WidgetModelBuilder<TEvent extends BaseEvent, TModel extends IObservable<TEvent> > ({
- required TModel model,
- required TEvent? initialEvent,
- required Widget builder(
- BuildContext context,
- TModel model,
- TEvent? previousEvent,
- TEvent? event,
- bool buildWhen(
- TModel model,
- TEvent? previous,
- TEvent? current
- void listener(
- TEvent? previous,
- TEvent? current
Implementation
WidgetModelBuilder(
{required TModel model,
required this.initialEvent,
required Widget Function(BuildContext context, TModel model,
TEvent? previousEvent, TEvent? event)
builder,
bool Function(TModel model, TEvent? previous, TEvent? current)? buildWhen,
void Function(TEvent? previous, TEvent? current)? listener})
: super(
model: model,
buildWhen: buildWhen,
builder: builder,
listener: listener);