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

outdated

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 #