flutter_master_events

Last updated:

0 purchases

flutter_master_events Image
flutter_master_events Images
Add to Cart

Description:

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

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.