cancel method

void cancel()

Implementation

void cancel() {
  if (_isRunning) {
    _isRunning = false;
    _timer.cancel();
  }
}