SimpleStreamSubscription<T> class
A SimpleStream implementation of StreamSubscription.
Major differences:
- Implemented types
Constructors
-
SimpleStreamSubscription(SimpleStream<
T> ? _stream, StreamCallbackFunc<T> ? _callback, Function? _doneCallback, Function? _onError, bool? _cancelOnError, Zone? _contextZone)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPaused → bool
-
Whether the StreamSubscription is currently paused.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asFuture<
S> ([S? futureValue]) → Future< S> -
Returns a future that handles the onDone and onError callbacks.
override
-
cancel(
) → Future -
Cancels this subscription.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onData(
void handleData(T data)?) → void -
Replaces the data event handler of this subscription.
override
-
onDone(
void handleDone()?) → void -
Replaces the done event handler of this subscription.
override
-
onError(
Function? handleError) → void -
Replaces the error event handler of this subscription.
override
-
pause(
[Future< void> ? resumeSignal]) → void -
Requests that the stream pauses events until further notice.
override
-
resume(
) → void -
Resumes after a pause.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited