mateusfccp/pausable_timer
一個可以暫停、恢復和重設的 Dart 計時器。
- Stars
- 36
- Forks
- 8
- 最近推送(UTC)
- 2025年12月26日
- 專案狀態
- 未封存
語言DartShell
技術主題
使用的依賴
依賴清單 4 項
- clock
^1.1.0 - fake_async開發依賴
^1.3.1 - lints開發依賴
^3.0.0 - test開發依賴
>=1.24.0
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
展開 / 收合專案 README
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 functionality.
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.