FormatDioLogger class

dio打印

Constructors

FormatDioLogger({bool request = true, bool requestHeader = true, bool requestBody = true, bool responseBody = true, bool responseHeader = false, int maxBoxWidth = kMaxWidth, bool error = true})

Properties

error bool
打印错误信息
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
maxBoxWidth int
盒子宽度大小,不影响数据的输出长度
final
request bool
打印请求,如果此字段为false,则requestHeaderrequestBody也不会打印
getter/setter pair
requestBody bool
打印请求参数 Options.data
getter/setter pair
requestHeader bool
打印请求头 Options.headers
getter/setter pair
responseBody bool
打印响应 Response.data,如果此字段为false,则responseHeader也不会打印
getter/setter pair
responseHeader bool
打印响应头部 Response.headers
getter/setter pair
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(DioException err, ErrorInterceptorHandler handler) → void
Called when an exception was occurred during the request.
onRequest(RequestOptions options, RequestInterceptorHandler handler) → void
Called when the request is about to be sent.
onResponse(Response response, ResponseInterceptorHandler handler) → void
Called when the response is about to be resolved.
toString() String
A string representation of this object.
inherited

Operators

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