Misc.stopwatch constructor
Misc.stopwatch([
- String? prefix
Creates a Stopwatch in stopped state with a zero elapsed count.
The following example shows how to start a Stopwatch immediately after allocation.
final misc = Misc()..startWatch();
Implementation
factory Misc.stopwatch([String? prefix]) => Misc()..startWatch(prefix);