Creates a new MutableEventDispatcherProvider instance
Configuration options including the container provider
ReadonlynameUnique name identifying this provider implementation Used for debugging and logging purposes
Removes all registered listeners from all events
Removes all listeners for a specific event type
The event class/constructor to clear
Returns the internal listeners map
Map of event names to listener tokens
Checks if a specific listener is registered for an event type
The event class/constructor
The listener class/symbol
true if the listener is already registered
Checks if any listeners are registered for an event type
The event class/constructor to check
true if at least one listener is registered
Registers a listener for a specific event type
The event class/constructor to listen for
The listener class/symbol to invoke when event is dispatched
Default EventDispatcherProvider implementation
This provider stores listeners in memory and resolves them through the DI container when dispatching events. Each listener must implement an
onEvent(event)method.Example: Basic usage
Example: Dispatching events