Skip to content

mateusfccp/pausable_timer

Repository files navigation

pausable_timer

CI Pub Score Latest Dart version pub package pub points likes

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.

How to use it

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.