events_bus

IAppEventBus eventBus = AppEventBus();
final event = FollowEvent('devcraft.ninja');

// listen last event
eventBus.last$.listen((AppEvent event) { /*do something*/ });

// start watch
eventBus.watch(event);

// and check the progress
eventBus.isInProgress<FollowAppEvent>();

// or listen stream
eventBus.inProgress$.map((List<AppEvent> events) =>
        events.whereType<FollowAppEvent>().isNotEmpty)

// complete
_eventBus.complete(event);

// or complete with completion event
_eventBus.complete(event, nextEvent: SomeAnotherEvent);

Contributing

We accept the following contributions:

Maintainers

Libraries

app_event
event_bus
event_bus_plus
res
subscription