ApiLink class abstract

An abstract class that lets you create your own link

Each link should extend this method

Implementers

Constructors

Default constructor.
ApiLink.next(NextHandler next, {VoidFunction? dispose, VoidFunction? init})
Allows constructing the ApiLink instance in place by providing handlers.
factory

Properties

attached bool
no setter
chained bool
no setter
disposed bool
no setter
hashCode int
The hash code for this object.
no setterinherited
isReleaseBuild bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 of next 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