Components/Stopwatch

Stopwatch

An elapsed-time stopwatch that counts up. Call .start(), .stop() and .reset(), and forward TickMsg to advance elapsed.

Install the package

Every component ships in the single dart_tui package.

$dart pub add dart_tui
stopwatch · dart_tui
Stopwatch demo

StopwatchModel

PropertyTypeDescription
elapsedDurationAccumulated elapsed time.
runningboolWhether the stopwatch is running.

Related