event_dispatcher_builder library

Classes

EventDispatcher
This class describes a event dispatcher
GenerateEventDispatcher
Mark the file which contains this annotation as the entry point.
HandlerDescriptor<THandler>
This is class describes a event handler. At build time, the build_runner will extract the Subscribe
Subscribe
Annotation for marking a method as a event subscriber.
SubscriptionFactory<THandler, T>
The subscription factory is used for creating subscriptions for a specific event at runtime.

Typedefs

Subscription<T> = void Function(T eventType)
Represents a Subscription for a event

Exceptions / Errors

EventDispatcherException
A base class for EventDispatcher specific exceptions
HandlerNotSupportedException
This exception is thrown if you try to register a handler that does not have any methods decorated with @Subscribe.