stop method

void stop()

Implementation

void stop() {
  _timer?.cancel();
  _timer = null;
  remaining.value =
      totalDuration; // `stop` resets countdown to the initial duration.
  _isPaused = false;
}