stop method

void stop()

Implementation

void stop() {
  _running = false;
  _timer?.cancel();
  _timer = null;
  _ticker?.dispose();
  _ticker = null;
  _lastEvent = null;
}