Simple delegating wrapper around a StreamSubscription.

Subclasses can override individual methods.

Implements
  • StreamSubscription<T>

Constructors

DelegatingStreamSubscription(StreamSubscription sourceSubscription)

Create delegating subscription forwarding calls to sourceSubscription.

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
isPaused → bool

read-only
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

asFuture([futureValue]) → Future

Returns a future that handles the onDone and onError callbacks.

cancel() → Future

Cancels this subscription.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
onData(void handleData(T data)) → void

Set or override the data event handler of this subscription.

onDone(void handleDone()) → void

Set or override the done event handler of this subscription.

onError(Function handleError) → void

Set or override 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.

toString() → String

Returns a string representation of this object.

inherited