DelegatingStreamSubscription<T> class

Simple delegating wrapper around a StreamSubscription.

Subclasses can override individual methods.

Constructors

DelegatingStreamSubscription(StreamSubscription<T> sourceSubscription)
Create delegating subscription forwarding calls to sourceSubscription.

Properties

isPaused → bool
Whether the StreamSubscription is currently paused. [...]
read-only
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

asFuture<E>([E futureValue ]) → Future<E>
Returns a future that handles the onDone and onError callbacks. [...]
cancel() → Future
Cancels this subscription. [...]
onData(void handleData(T data)) → void
Replaces the data event handler of this subscription. [...]
onDone(void handleDone()) → void
Replaces the done event handler of this subscription. [...]
onError(Function handleError) → void
Replaces the error event handler of this subscription. [...]
pause([Future resumeFuture ]) → void
Request that the stream pauses events until further notice. [...]
resume() → void
Resume after a pause. [...]
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

Static Methods

typed<T>(StreamSubscription subscription) → StreamSubscription<T>
Creates a wrapper which throws if subscription's events aren't instances of T. [...]