stop method

void stop()

Implementation

void stop() {
  timer?.cancel();
}