MVUProvider<Model, Msg>.fromProcessor constructor

MVUProvider<Model, Msg>.fromProcessor({
  1. required MVUProcessor<Model, Msg> processor,
  2. Widget child = const SizedBox.shrink(),
  3. Effect<Msg>? onInit,
  4. Effect<Msg>? onDispose,
  5. 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});