MVUContext<Model, Msg>.withTicker constructor

MVUContext<Model, Msg>.withTicker({
  1. required MsgWidgetBuilderWithTickerProvider<Model, Msg> view,
  2. Widget onContextMissing = const SizedBox.shrink(),
  3. Key? key,
})

Creates a new MVUContext widget recovering the MVUProcessor from the context. Access to the TickerProvider is provided.

Implementation

MVUContext.withTicker(
    {required MsgWidgetBuilderWithTickerProvider<Model, Msg> view,
    this.onContextMissing = const SizedBox.shrink(),
    super.key})
    : _view = view;