boot_events 0.2.0+1 copy "boot_events: ^0.2.0+1" to clipboard
boot_events: ^0.2.0+1 copied to clipboard

Event system for Boot (EventBus, @EventListener).

boot_events #

Event system for the Boot Framework.

Features #

  • EventBus — publish/subscribe with type-safe events
  • @EventListener — annotation for auto-discovered listeners
  • StartupEvent, ShutdownEvent — built-in lifecycle events

Usage #

class UserCreated { final String name; UserCreated(this.name); }

// Publish
eventBus.publish(UserCreated('Alice'));

// Listen
eventBus.on<UserCreated>((e) => print('Created: ${e.name}'));
0
likes
140
points
5
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Event system for Boot (EventBus, @EventListener).

Repository (GitHub)
View/report issues

Topics

#boot #events #event-bus

License

MIT (license)

Dependencies

boot_core

More

Packages that depend on boot_events