smart_timer

Creator: coderz1093

Last updated:

0 purchases

smart_timer Image
smart_timer Images

Languages

Categories

Add to Cart

Description:

smart timer

smart_timer #
A periodic Timer which runs only while the app's lifecycle is resumed.
The default Dart timer also runs while the app is paused, e.g. if it is in the background. This can be useful sometimes, but often you might want to stop the timer to save resources. smart_timer listens to app lifecycle changes and pauses/resumes the timer accordingly.
Usage #
SmartTimer(
duration: Duration(seconds: 1),
onTick: () => print("Hello World"),
)
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.