stop method

void stop()

Stop timing. Call this after the first frame renders.

Typically used inside:

WidgetsBinding.instance.addPostFrameCallback((_) {
  vitals.stopStartup();
});

Implementation

void stop() {
  if (!_isRunning || _hasCompleted) return;
  _stopwatch.stop();
  _isRunning = false;
  _hasCompleted = true;
}