MVUContext<Model, Msg> constructor

MVUContext<Model, Msg>({
  1. required MsgWidgetBuilder<Model, Msg> view,
  2. Widget onContextMissing = const SizedBox.shrink(),
  3. 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));