StateUpdateCallback<TState> typedef
StateUpdateCallback<TState> =
TState Function(TState state)
Produces the next state from the current state. Passed to
State.update (and re-exported via Store.update) for functional
updates that don't need a temp variable.
Implementation
typedef StateUpdateCallback<TState> = TState Function(TState state);