Reducer<State> typedef
Null safety
A function that takes a StoreAction and a State
, and returns a new State
.
Implementation
typedef Reducer<State> = State Function(
State state,
StoreAction action,
);
A function that takes a StoreAction and a State
, and returns a new State
.
typedef Reducer<State> = State Function(
State state,
StoreAction action,
);