Interface for managing application events.
Provides functionality for:
- Broadcasting events to multiple subscribers
- Type-safe event filtering
- Resource cleanup
Generic type E
represents the base event type that repository can handle.
- Implementers
Properties
Methods
-
addEvent(
{required E event}) → void - Adds a new event to the repository.
-
dispose(
) → Future< void> - Releases all resources associated with this repository.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
on<
T extends E> () → Stream< T> -
Returns a filtered stream of events of specific type
T
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited