update method
void
update(
- S stateUpdater(
- S state
Update global state with a stateUpdater function - sometimes it's more convenient than use replace
Implementation
void update(S Function(S state) stateUpdater) => replace(stateUpdater(state));