Interceptor class

Provides optional onRequest and onResponse handlers to be used with InterceptorsMixin

Constructors

Interceptor({FutureOr<Request> onRequest(Request request)?, FutureOr<Response> onResponse(Response response)?})

Properties

hashCode int
The hash code for this object.
no setterinherited
onRequest → (FutureOr<Request> Function(Request request)?)
final
onResponse → (FutureOr<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