cancel method

void cancel()

Cancels any pending action and clears the current throttle window.

Implementation

void cancel() {
  if (_isDisposed) return;
  _timer?.cancel();
  _timer = null;
  _pendingAction = null;
  _isThrottled = false;
}