Cancelable class

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, String messageChannelSuffix = ''})
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.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() Future<void>
Cancels the associated asynchronous operation
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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

pigeonChannelCodec → const MessageCodec<Object?>