yogurt_event_bus 0.0.5 copy "yogurt_event_bus: ^0.0.5" to clipboard
yogurt_event_bus: ^0.0.5 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));
1
likes
130
points
40
downloads

Documentation

API reference

Publisher

verified publisherronbb.fun

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

freezed_annotation

More

Packages that depend on yogurt_event_bus