Last updated:
0 purchases
flutter master events
flutter_master_events #
Simple implementation for events
//Follow event
EventBus().follow<StringEvent>((event) => print(event.string));
//Broadcast event (Call/trigger the event)
EventBus().broadcast<StringEvent>(StringEvent('Hello World!!!'));
//Unfollow event
EventBus().unfollow<StringEvent>();
//Unfollow callback
EventBus().unfollow<StringEvent>((event) => print(event.string));
class StringEvent extends Event {
StringEvent(this.string);
String string;
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.