stop method

void stop()

Implementation

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