ReceivedCancellationSignal class

A CancellationSignal that was created somewhere else and received by some client, typically AndroidContentProvider.

Can only be observed, and cannot be cancelled, because when such a signal is cancelled by the receiver, the creator cannot listen to this cancel, and probably doesn't even expect this.

Also, if receiver wants to end the operation, it should be able to just return (or throw) explicitly, instead of cancelling the signal, making this operation essentially useless.

Inheritance
Implementers

Constructors

ReceivedCancellationSignal.fromId(String _id)
Creates cancellation signal from an existing ID.

Properties

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

Methods

dispose() → void
Disposes the cancellation signal.
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.
toString() String
A string representation of this object.
override

Operators

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