of<Model, Msg> static method

MVUProcessor<Model, Msg>? of<Model, Msg>(
  1. BuildContext context
)

Recover the processor from the context.

Implementation

static MVUProcessor<Model, Msg>? of<Model, Msg>(
        BuildContext context) =>
    context
        .dependOnInheritedWidgetOfExactType<
            _InheritedMVUProvider<Model, Msg>>()
        ?.processor;