privateReducer method

  1. @override
T privateReducer(
  1. ReduxAction action,
  2. S state,
  3. T privateState
)
override

Implementation

@override
T privateReducer(ReduxAction action, S state, T privateState) {
  T newState = privateState;
  _privateReducerMap.forEach((Type type, TypedPrivateReducerFunction<S, T> callback) {
    if (action.runtimeType == type.runtimeType) {
      newState = callback(action, state, newState);
    }
  });
  return newState;
}