ApiInterceptor class abstract

Abstract interceptor class for modifying requests, responses, or errors in flight.

Implementers

Constructors

ApiInterceptor()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
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(ApiError error) → Future<ApiError?>
Called when an HTTP or network error occurs.
onRequest(ApiRequest request) → Future<ApiRequest>
Called before the request is sent over the network.
onResponse(ApiResponse response) → Future<ApiResponse>
Called when a response is received from the server.
toString() → String
A string representation of this object.
inherited

Operators

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