timerCancel method

dynamic timerCancel()

Implementation

timerCancel() {
  if (timer.isActive) {
    timer.cancel();
  }
}