Reducer<State, Action> typedef
Reducer<State, Action> =
State Function(State, Action)
A reducer Function that consumes some State
and Action
and returns
a new, transformed State
.
Implementation
typedef Reducer<State, Action> = State Function(State, Action);