ActionReducer<State, Action extends StoreAction> typedef Null safety

ActionReducer<State, Action extends StoreAction> = State Function(State state, Action action)

A Reducer function that accepts a StoreAction of a specific type.

Implementation

typedef ActionReducer<State, Action extends StoreAction> = State Function(
  State state,
  Action action,
);