ApiLink class abstract
An abstract class that lets you create your own link
Each link should extend this method
- Implementers
Constructors
- ApiLink()
- Default constructor.
- ApiLink.next(NextHandler next, {VoidFunction? dispose, VoidFunction? init})
-
Allows constructing the ApiLink instance in place by
providing handlers.
factory
Properties
Methods
-
chain(
ApiLink nextLink) → ApiLink - Chain multiple links into one. throws ApiError when error occurs
-
dispose(
) → void - Called when API object has been disposed
-
next(
Request request) → Future< Response> -
This method is called on every request.
Calling
super.next
will cause invocation ofnext
method in the next ApiLink in the chain (if present) -
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