update method
void
update(
- _UpdateCallback<
T> callback
To update the state, you can use update method.
Example:
counterProvider.update((state) => state + 1);
Implementation
void update(_UpdateCallback<T> callback) => set(callback(_state));