cancel method

void cancel()

Implementation

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