built_redux icon indicating copy to clipboard operation
built_redux copied to clipboard

Why didn't I add multiple middleware at a time?

Open myfreax opened this issue 5 years ago • 0 comments

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)

myfreax avatar Nov 07 '19 09:11 myfreax