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.