update method
- T reducer(
- T state
Updates the controller's state using the provided reducer function.
Automatically sets this intent as the origin to enable intent tracking.
Implementation
void update(T Function(T state) reducer) {
controller.update(reducer, origin: this);
}