cancel method

void cancel()

Cancels any pending cool-down and resets the throttle so the next call to run will execute immediately.

Implementation

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