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(); #

5
likes
0
points
15
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