StreamSubscriberMixin<T> class

Mixin for classes that own StreamSubscriptions and expose an API for disposing of themselves by cancelling the subscriptions

Implementers

Constructors

StreamSubscriberMixin()

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited