stop method

  1. @override
void stop()
override

Stops the Stopwatch.

The elapsedTicks count stops increasing after this call. If the Stopwatch is currently not running, then calling this method has no effect.

Implementation

@override
void stop() {
  if (!isRunning) return;
  _stop = _now();
}