cancel method

void cancel()

Implementation

void cancel() {
  _timer?.cancel();
  _timer = null;
  if (countDown) elapsed = Duration.zero;
}