Stopwatch()

Creates a Stopwatch in stopped state with a zero elapsed count.

The following example shows how to start a Stopwatch immediately after allocation.

Stopwatch stopwatch = new Stopwatch()..start();

Source

Stopwatch() {
  _initTicker();
}