BaseInterceptor class

BaseHttp Base-Interceptor.

Handle your errors, auth-check and more of your http requests here!

Constructors

BaseInterceptor()

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

getHeaders() → dynamic
Set basic headers of your application with custom token and fields here!
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onError(DioError err, ErrorInterceptorHandler handler) → void
error handler of BaseHttp.
onRequest(RequestOptions options, RequestInterceptorHandler handler) → void
request handler of BaseHttp.
onResponse(Response response, ResponseInterceptorHandler handler) → void
response handler of BaseHttp.
toString() String
A string representation of this object.
inherited

Operators

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