cancel method Null safety

void cancel()

Cancels all the remaining delayed functions.

Implementation

void cancel() {
  _timer?.cancel();
  _lastInvokeTime = 0;
  _lastCallTime = _timer = null;
  _lastArgs = _lastNamedArgs = _undefined;
}