MVUContext<Model, Msg> constructor
MVUContext<Model, Msg> ({
- required MsgWidgetBuilder<
Model, Msg> view, - Widget onContextMissing = const SizedBox.shrink(),
- Key? key,
Creates a new MVUContext widget recovering the MVUProcessor from the context.
Implementation
MVUContext(
{required MsgWidgetBuilder<Model, Msg> view,
this.onContextMissing = const SizedBox.shrink(),
super.key})
: _view = ((BuildContext context, TickerProvider _, Model model,
Dispatch<Msg> dispatcher) =>
view(context, model, dispatcher));