isRunning method

bool isRunning({
  1. String? ref,
})

Whether a stopwatch exists and is running for ref.

Implementation

bool isRunning({String? ref}) {
  ref ??= currentReference;
  return _stopwatches.containsKey(ref) && _stopwatches[ref]!.isRunning;
}