LightSubscription<T> class
Null safety
- Inheritance
- Object
- StreamSubscription<
T> - LightSubscription
Constructors
-
LightSubscription(RemoveSubscription<
T> _removeSubscription, {void onPause()?, void onResume()?, FutureOr<void> onCancel()?})
Properties
- cancelOnError ↔ bool?
-
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- isPaused → bool
-
Whether the StreamSubscription is currently paused. [...]
read-only, override
-
onCancel
→ (FutureOr<
void> Function?()?) -
final
- onPause → (void Function?()?)
-
final
- onResume → (void Function?()?)
-
final
- 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. [...]
override
-
cancel(
) → Future< void> -
Cancels this subscription. [...]
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
onData(
OnData< T> ? handleData) → void -
Replaces the data event handler of this subscription. [...]
override
-
onDone(
Callback? 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