flutter_master_events 1.0.0 copy "flutter_master_events: ^1.0.0" to clipboard
flutter_master_events: ^1.0.0 copied to clipboard

Simple event package

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;

    }
1
likes
120
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

Simple event package

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_master_events