MVUBuilder<Model, Msg>.ofProcessor constructor

MVUBuilder<Model, Msg>.ofProcessor({
  1. required MVUProcessor<Model, Msg> processor,
  2. required MsgWidgetBuilder<Model, Msg> view,
})

Creates a MVUBuilder with the given processor and view functions.

Implementation

MVUBuilder.ofProcessor(
    {required MVUProcessor<Model, Msg> processor,
    required MsgWidgetBuilder<Model, Msg> view})
    : this._(
          processor,
          ((BuildContext context, TickerProvider _, Model model,
                  Dispatch<Msg> dispatcher) =>
              view(context, model, dispatcher)));