cancel method

void cancel()

Cancels any pending execution

Implementation

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