dispose method

void dispose()

Cancels a pending flush. Wire to the owning provider's ref.onDispose so a loader replaced mid-window (its repository rebuilt) does not fire a timer that completes futures nothing awaits. A no-op when idle.

Implementation

void dispose() {
  _timer?.cancel();
  _timer = null;
}