BasicDioOptions class

Constructors

BasicDioOptions({dynamic receiveTimeout = const Duration(seconds: 5), dynamic connectTimeout = const Duration(seconds: 5), dynamic sendTimeout = const Duration(seconds: 5), dynamic downloadResponseType = ResponseType.bytes, String? downloadContentType, String? uploadContentType, ValueCallbackHeader? extraHeader, ValueCallbackData? extraData, ValueCallbackUriData? extraUriData, ValueCallbackParams? extraParams, ValueCallbackUri? extraUri, BasicDioErrorIntercept? errorIntercept, List<String> filteredApi = const [], dynamic method, dynamic baseUrl = '', dynamic queryParameters, dynamic extra, dynamic headers, dynamic responseType = ResponseType.json, dynamic contentType, dynamic validateStatus, dynamic receiveDataWhenStatusError, dynamic followRedirects, dynamic maxRedirects, dynamic requestEncoder, dynamic responseDecoder, dynamic listFormat, List<String> codeKeys = const ['code', 'status', 'statusCode', 'errcode'], List<String> msgKeys = const ['msg', 'errorMessage', 'statusMessage', 'errmsg'], List<String> dataKeys = const ['data', 'result'], List<String> extensionKeys = const ['extension'], List<String> hideMsg = const ['success', 'OK'], List<String> successCode = const ['200'], bool showLoading = true, bool pullHideLoading = true})

Properties

codeKeys List<String>
BasicModel 后台返回状态码
getter/setter pair
dataKeys List<String>
BasicModel 后台返回具体数据
getter/setter pair
downloadContentType String?
下载的ContentType;
getter/setter pair
downloadResponseType ↔ dynamic
下载文件时的请求类型
getter/setter pair
errorIntercept BasicDioErrorIntercept?
错误拦截;
getter/setter pair
extensionKeys List<String>
BasicModel 后台返回扩展数据
getter/setter pair
extraData ValueCallbackData?
扩展所有的 data 参数
getter/setter pair
extraHeader ValueCallbackHeader?
header设置
getter/setter pair
extraParams ValueCallbackParams?
扩展所有的 params
getter/setter pair
extraUri ValueCallbackUri?
扩展所有的 uri
getter/setter pair
extraUriData ValueCallbackUriData?
扩展所有的 uri Data
getter/setter pair
filteredApi List<String>
不打印 返回 data 的 api
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hideMsg List<String>
后台返回 message 隐藏 toast 主要用于 网络请求返回 判断方法resultSuccessFail
getter/setter pair
msgKeys List<String>
BasicModel 后台返回message
getter/setter pair
pullHideLoading bool
showLoading 为 true 时 刷新组件 下拉或上拉 隐藏loading,默认为true
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showLoading bool
全局控制显示loading
getter/setter pair
successCode List<String>
后台返回成功的状态码 主要用于 网络请求返回 判断方法resultSuccessFail
getter/setter pair
uploadContentType String?
上传的Type
getter/setter pair

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