cancelTimer method

dynamic cancelTimer()

Implementation

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