LoggingInterceptor class

Inheritance

Constructors

LoggingInterceptor({bool logRequest = true, bool logResponse = true, bool logError = true, String logTag = 'FittorClient'})

Properties

hashCode → int
The hash code for this object.
no setterinherited
logError → bool
final
logRequest → bool
final
logResponse → bool
final
logTag → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onError(dynamic error, StackTrace stackTrace) → Future
Called when an error occurs during request processing
override
onRequest(FittorRequest request) → Future<FittorRequest>
Called before a request is sent
override
onResponse(FittorResponse response) → Future<FittorResponse>
Called after a successful response is received
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited