MVUProcessor<Model, Msg>.fromFunctions constructor
MVUProcessor<Model, Msg>.fromFunctions ({
- required (Model, Cmd<
Msg> ) init(), - required (Model, Cmd<
Msg> ) update(- Msg,
- Model
- Subscription<
Model, Msg> ? subscriptions, - bool modelEquality(
- Model,
- Model
Create a new MVUProcessor from functions instead of subclassing.
Implementation
factory MVUProcessor.fromFunctions(
{required (Model, Cmd<Msg>) Function() init,
required (Model, Cmd<Msg>) Function(Msg, Model) update,
Subscription<Model, Msg>? subscriptions,
bool Function(Model, Model)? modelEquality}) =>
_DelegatingMVUProcessor(init, update, subscriptions, modelEquality);