AbortController class
Abort controller that optionally receives onAbort
callback in which case
an AbortError
doesn't get thrown by the Future.
final ctl = AbortController(onAbort:(e)=>print('onAbort: $e'));
Constructors
- AbortController({Function? onAbort})
- Trigger abort signal.
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(
[String? message]) → void -
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