stop method

  1. @override
void stop()
override

Stop the timer.

The elapsedTime and tick stops increasing after this call. If call when timer is stopped does nothing.

Implementation

@override
void stop() {
  if (stopwatch.elapsedMicroseconds == 0) return;
  stopwatch.stop();
  timer.cancel();
}