update method

void update(
  1. T reducer(
    1. 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);
}