stop method

void stop()

Cancels the timer; no exchange runs after this. Idempotent.

Implementation

void stop() {
  _timer?.cancel();
  _timer = null;
}