MVUProvider<Model, Msg>.fromProcessor constructor
MVUProvider<Model, Msg>.fromProcessor ({
- required MVUProcessor<
Model, Msg> processor, - Widget child = const SizedBox.shrink(),
- Effect<
Msg> ? onInit, - Effect<
Msg> ? onDispose, - Key? key,
Creates a MVUProvider with the given processor.
processoris the processor to be used.childis the widget to be rendered.onInitis called when the widget is initialized.onDisposeis called when the widget is disposed.
Implementation
MVUProvider.fromProcessor(
{required this.processor,
this.child = const SizedBox.shrink(),
this.onInit,
this.onDispose,
super.key});