stop method

void stop()

Implementation

void stop() {
  isRunning = false;
  timer?.cancel();
  remainingSeconds = 0;
}