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

Pinger is a highly optimised and fast flutter notifier. It helps to achieve a easier state management

Pinger #

Pinger #

Think of it as a simple pub-sub (publish/subscribe) system that integrates smoothly into your Flutter project. #

โœจ Features #

๐Ÿ”„ Subscribe to real-time data updates from anywhere (widgets or services). #

๐Ÿ“ก Broadcast (ping) new values to all active listeners. #

๐Ÿงน Simple subscription and unsubscription management. #

๐Ÿš€ Minimal, fast, and boilerplate-free. #

โŒ Disposables support (stop receiving updates once disposed). #

๐Ÿš€ Usage #

1. Create a Pinger #

final Pinger #

2. Subscribe to updates #

counterPinger.subscribe((value) { #

print("Counter updated: $value"); #

}); #

3. Send updates (ping values) #

counterPinger.ping(1); // Prints: Counter updated: 1 #

counterPinger.ping(2); // Prints: Counter updated: 2 #

4. Unsubscribe when not needed #

counterPinger.unsubscribe(listener); #

5. Dispose when finished #

counterPinger.dispose(); #

2
likes
0
points
16
downloads

Publisher

unverified uploader

Weekly Downloads

Pinger is a highly optimised and fast flutter notifier. It helps to achieve a easier state management

Repository (GitHub)
View/report issues

Topics

#state-management #lightweight #fast #disposable #performance

License

unknown (license)

Dependencies

flutter

More

Packages that depend on pinger