Reducer<State, Action> typedef
Reducer<State, Action> =
State Function(State state, Action action)
Composes an Action
and a State
to create a new State
.
Reducer must never return null
, even if state
or action
are null
.
Implementation
typedef Reducer<State, Action> = State Function(State state, Action action);