event_bus_plus 0.2.2 copy "event_bus_plus: ^0.2.2" to clipboard
event_bus_plus: ^0.2.2 copied to clipboard

Event Bus for Dart.

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 #