yogurt_event_bus 0.0.4 copy "yogurt_event_bus: ^0.0.4" to clipboard
yogurt_event_bus: ^0.0.4 copied to clipboard

Provide async or sync event bus for building complex logic. Support plugins and handler priorities

A library that provides support for synchronous and asynchronous event bus functionality.

Features #

  • Supports both synchronous and asynchronous event handling.
  • Allows easy communication between different parts of your Dart application.

Getting started #

To start using the library, add the following dependency to your pubspec.yaml file:

dependencies:
  yogurt_event_bus: any

Usage #

Here's a simple example demonstrating how to use the library:

final bus = AsyncEventBus(
    state: const _TestState(null),
    plugins: [_TestPlugin()],
);

final result = await bus.invoke(const _TestEvent(null));
0
likes
140
pub points
0%
popularity

Publisher

verified publisherronbb.fun

Provide async or sync event bus for building complex logic. Support plugins and handler priorities

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

freezed_annotation

More

Packages that depend on yogurt_event_bus