stop method

void stop()

Implementation

void stop() {
  if (timer != null && timer!.isActive) timer!.cancel();
}