Abort class

Creates an AbortSignal that is immediately aborted with an optional reason.

This is equivalent to calling AbortSignal.abort(reason) in the Web SDK.

Useful when you want to explicitly cancel a callable before it begins, or to provide a specific reason for cancellation.

Example:

final signal = HttpsCallableOptions(webAbortSignal: Abort('User exited'));
Inheritance

Constructors

Abort.new([Object? reason])

Properties

hashCode int
The hash code for this object.
no setterinherited
reason Object?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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