CancellationSignal class

Provides the ability to cancel an operation in progress https://developer.android.com/reference/android/os/CancellationSignal

Inheritance

Constructors

CancellationSignal()
Creates cancellation signal.

Properties

cancelled bool
Whether the operation is cancalled.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
An ID of an object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() → void
Cancels the operation and signals the cancellation listener. If the operation has not yet started, then it will be canceled as soon as it does.
dispose() → void
Disposes the cancellation signal.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCancelListener(VoidCallback? listener) → void
Sets the cancellation listener to be called when canceled.
inherited
toString() String
A string representation of this object.
inherited

Operators

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