stop method

void stop()

Stops the timer.

See start

Implementation

void stop() {
  if (_timeout != null) {
    _timeout!.cancel();
    _timeout = null;
  }

  if (_timer != null) {
    _timer!.cancel();
    _timer = null;
  }
}