time_listener 0.0.1 copy "time_listener: ^0.0.1" to clipboard
time_listener: ^0.0.1 copied to clipboard

outdated

An extremely easy-to-use flutter plugin that allows you to listen time changes.

time_listener #

An extremely easy-to-use flutter plugin that allows you to listen time changes.

Features #

This package makes it easy to listen for the device's time change using a dedicated stream. The code responsible for checking the time difference is run in a isolate, so you don't have to worry about performance.

Usage #

To start listening, create instances of the class and call the listen method on it. Stream event with the new date will come every second.

final listener = TimeListener();
listener.listen((DateTime date) => print(date));

Remember to stop listening the moment you no longer need it.

listener.cancel();
6
likes
0
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

An extremely easy-to-use flutter plugin that allows you to listen time changes.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on time_listener