stop method

dynamic stop()

Implementation

stop() {
  final Timer? timer = this.timer;
  if (timer != null && timer.isActive) {
    timer.cancel();
  }
}