afterware method

  1. @override
FutureOr<ReduxAction> afterware(
  1. DispatchFunction dispatcher,
  2. ReduxState state,
  3. ReduxAction action
)
override

Implementation

@override
FutureOr<ReduxAction> afterware(dispatcher, ReduxState state, ReduxAction action) {
  _afterwareMap.forEach((Type type, TypedMiddlewareFunction callback) {
    if (action.runtimeType == type.runtimeType) {
      callback(dispatcher, state, action);
    }
  });
  return action;
}