dependencies/dio library

Classes

BaseDio
BaseDioOptions
BaseModel
基础解析数据model
InterceptorError

Constants

kContentTypeWithFormData → const String
FormData ContentType
kContentTypeWithTextXml → const String
TextXml ContentType

Functions

logJson(dynamic data) → void
resultSuccessFail(BaseModel data, {String? text, bool nullPass = false}) bool
nullPass = true data 为null 返回true

Typedefs

BaseDioErrorIntercept = List<InterceptorError> Function(String path, dynamic tag)
ValueCallbackData<T> = T Function(String path, T params)
扩展所有的 data
ValueCallbackError = bool Function()
ValueCallbackHeader = Map<String, String>? Function(String url)
扩展所有的 header
ValueCallbackParams = Map<String, dynamic>? Function(String path, Map<String, dynamic>? params)
扩展所有的 params
ValueCallbackUri = Uri Function(Uri uri)
扩展所有的 uri
ValueCallbackUriData<T> = T Function(Uri uri, T params)
扩展所有的 uri data