stop method Null safety

void stop ()

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

void stop() {
  _stop ??= _now();
}