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
.
processor
is the processor to be used.child
is the widget to be rendered.onInit
is called when the widget is initialized.onDispose
is called when the widget is disposed.
Implementation
MVUProvider.fromProcessor(
{required this.processor,
this.child = const SizedBox.shrink(),
this.onInit,
this.onDispose,
super.key});