LoggerLink class

LoggerLink is DebugLink that prints request details to console.

DebugLinks will NOT be present in release builds. They are ignored by ApiLink.chain method.

Inheritance

Constructors

Properties

attached bool
no setterinherited
chained bool
no setterinherited
countRequests bool
final
disposed bool
no setterinherited
endpoint bool
final
hashCode int
The hash code for this object.
no setterinherited
isReleaseBuild bool
no setterinherited
label String?
final
requestBody bool
final
requestHeaders bool
final
requestsCount int
no setter
responseBody bool
final
responseDuration bool
final
responseHeaders bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode bool
final

Methods

chain(ApiLink nextLink) ApiLink
Chain multiple links into one. throws ApiError when error occurs
inherited
dispose() → void
Called when API object has been disposed
inherited
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)
override
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