Interceptor class

Constructors

Interceptor({Set<HttpMethod>? on, Request onRequest(Request request)?, Response onResponse(Response response)?, Object onError(Object error)?})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
on Set<HttpMethod>?
Will be applied only to http methods of a certain type By default (null) appends to all methods
final
onError → (Object Function(Object error)?)
final
onRequest → (Request Function(Request request)?)
final
onResponse → (Response Function(Response response)?)
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
toString() String
A string representation of this object.
inherited

Operators

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