IEventRepository<E> class abstract interface

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

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<E>
Stream of all events passing through the repository. Events are broadcasted to all active subscribers.
no setter

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