Workiva / built_redux

an implementation of redux written in dart that enforces immutability
MIT License
125 stars 46 forks source link

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

Open myfreax opened 4 years ago

myfreax commented 4 years ago

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)