stop method

void stop()

Stop timer

Implementation

void stop() {
  if (onStop != null) {
    onStop!();
  }
}