Reducer<State> typedef Null safety

Reducer<State> = State Function(State state, StoreAction action)

A function that takes a StoreAction and a State, and returns a new State.

Implementation

typedef Reducer<State> = State Function(
  State state,
  StoreAction action,
);