smf_event_bus 0.3.0 copy "smf_event_bus: ^0.3.0" to clipboard
smf_event_bus: ^0.3.0 copied to clipboard

The SMF module of events with event_bus for the Flutter app that SMF generates. Parts of the app that do not know each other exchange events through it.

smf_event_bus #

The SMF module of events with event_bus. It provides the events role of SMF: parts of the app that do not know each other, such as two features, exchange events through one service.

The events role generates the CommunicationService interface, whose fire(event) sends an event and on<T>() is the stream of the events of type T, and AppEvent, the base class of the events. This module adds event_bus to the app and implements the service on an EventBus. With a module that provides dependency injection, the service is registered in its container.

Use with the SMF CLI #

smf create asks which module provides the events of the app, and offers none as well. To choose this one without the question:

smf create my_app -m event_bus

You don't add this package to an app yourself: smf create of the SMF CLI puts what the module generates into the app.

SMF generates apps for Flutter 3.44 or newer and Dart 3.12 or newer. It is tested on macOS, Linux and Windows.

Documentation #

1
likes
160
points
11
downloads

Documentation

Documentation
API reference

Publisher

verified publishersaymyframe.com

Weekly Downloads

The SMF module of events with event_bus for the Flutter app that SMF generates. Parts of the app that do not know each other exchange events through it.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#flutter #events #event-bus #messaging

License

Apache-2.0 (license)

Dependencies

mason, smf_contracts

More

Packages that depend on smf_event_bus