A Dart timer that can be paused, resumed and reset.
PausableTimer
aims to be as similar and compatible as possible with Dart's
Timer
, while providing extra funcionality.
PausableTimer
should work exactly the same as a regular Timer
, but can be
paused, resumed and restarted with the respective methods (.pause
, .start
and .resume
).
There are also additional getters to check if the timer is active, paused, expired or cancelled.
More detailed examples can be found in the example folder.