cancelTimer method

void cancelTimer()

取消倒计时的计时器。

Implementation

void cancelTimer() {
  _timer?.cancel();
  _timer = null;
  _currentTime = widget.countdown;
  notyChange();
}