pause method

void pause()

Pauses the timer.

Implementation

void pause() {
  isPaused = true;
  _timer?.cancel();
  notifyListeners();
}