LoggerInterceptor class final

A dio.Interceptor that logs the exceptions/erros, requests, and responses.

Constructors

LoggerInterceptor()

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

formDataToMap(FormData formData) Map<String, String>
Converts the dio.FormData to a Map.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onError(DioException err, ErrorInterceptorHandler handler) → void
Logs the Exceptions/Errors.
onRequest(RequestOptions options, RequestInterceptorHandler handler) → void
Logs the Requests.
onResponse(Response response, ResponseInterceptorHandler handler) → void
Logs the Responses.
parseBodyData(dynamic data) String
Parses the body data.
toString() String
A string representation of this object.
inherited

Operators

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