CallbackCancellable class

Constructors

CallbackCancellable(void _callback())

Properties

cancellationStackTrace StackTrace
The stack trace at the time this cancellable was created.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isCancelled bool
Whether or not the operation has been cancelled.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

detach() → void
Detatches from the CancellationToken. This should be called after completing without cancellation.
inherited
maybeAttach(CancellationToken? token) bool
Attaches to the CancellationToken only if it hasn't already been cancelled. If the token has already been cancelled, onCancel is called instead.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCancel(Exception cancelException) → void
Called when the attached token is cancelled.
toString() String
A string representation of this object.
inherited

Operators

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