Interface for managing type-safe event subscriptions.
Provides functionality for:
- Type-safe event subscription management
- Individual and group subscription cancellation
- Stream transformation and error handling
Generic type E
represents the base event type that can be subscribed to.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancel<
T extends E> () → void -
Cancels all subscriptions for events of type
T
. -
dispose(
) → Future< void> - Cancels all active subscriptions and releases resources.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
subscribe<
T extends E> (void onData(T event), {Stream< T> modify(Stream<T> stream)?, Function? onError, void onDone()?, bool? cancelOnError, StreamTransformer<T, T> ? transform}) → StreamSubscription<T> -
Subscribes to events of specific type
T
. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited