AbortController extension type
The AbortController
interface represents a controller object that
allows you to abort one or more Web requests as and when desired.
You can create a new AbortController
object using the
AbortController.AbortController
constructor. Communicating with an
asynchronous operation is done using an AbortSignal object.
Constructors
- AbortController()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signal → AbortSignal
-
no setter
Methods
-
abort(
[JSAny? reason]) → void -
The
abort()
method of the AbortController interface aborts an asynchronous operation before it has completed. This is able to abort fetch requests, the consumption of any response bodies, or streams. -
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