StreamSubscriberMixin<T> class
abstract
Mixin for classes that own StreamSubscription
s and expose an API for
disposing of themselves by cancelling the subscriptions
- Implementers
Constructors
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
-
cancelSubscriptions(
) → void - Cancels all streams that were previously added with listen().
-
listen(
Stream< T?> ? stream, void onData(T? data)?, {Function? onError}) → void - Listens to a stream and saves it to the list of subscriptions.
-
noSuchMethod(
Invocation? invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String? -
A string representation of this object.
inherited
Operators
-
operator ==(
Object? other) → bool? -
The equality operator.
inherited