MockStreamSubscription<T> class

Implemented types

Constructors

MockStreamSubscription()

Properties

hashCode int
The hash code for this object.
no setterinherited
isPaused bool
Whether the StreamSubscription is currently paused.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

asFuture<E>([E? futureValue]) Future<E>
Returns a future that handles the onDone and onError callbacks.
inherited
cancel() Future<void>
Cancels this subscription.
inherited
noSuchMethod(Invocation invocation, {Object? returnValue, Object? returnValueForMissingStub = deferToDefaultResponse}) → dynamic
Handles method stubbing, method call verification, and real method calls.
inherited
onData(void handleData(T data)?) → void
Replaces the data event handler of this subscription.
inherited
onDone(void handleDone()?) → void
Replaces the done event handler of this subscription.
inherited
onError(Function? handleError) → void
Replaces the error event handler of this subscription.
inherited
pause([Future<void>? resumeSignal]) → void
Requests that the stream pauses events until further notice.
inherited
resume() → void
Resumes after a pause.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited