built_redux
built_redux copied to clipboard
Why didn't I add multiple middleware at a time?
I kown you can add function addAll
to MiddlewareBuilder. But I have found it in MiddlewareBuilder. Why not add this function. I don't want to invoke add
function every time
example
Map<ActionName, MiddlewareHandler<HomeState, HomeStateBuilder, HomeActions, dynamic>> other ={
HomeActionsNames.homeIncreaseAsync:_homeIncrease,
};
MiddlewareBuilder..addAll(other)