Cancelable class Null safety

Allows to cancel the associated asynchronous operation

The the associated asynchronous operation is not automatically canceled if this object goes out of scope.

Constructors

Cancelable({BinaryMessenger? binaryMessenger})
Constructor for Cancelable. The binaryMessenger named argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

cancel() Future<void>
Cancels the associated asynchronous operation
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

codec → const MessageCodec<Object?>