stop method

void stop()

Stops the sleep timer.

Implementation

void stop() {
  isRunning = false;
  _prediction?.cancel();
  _timer?.cancel();
}