BaseDio class

Constructors

BaseDio()
factory

Properties

baseDioOptions BaseDioOptions
getter/setter pair
dio ExtendedDio
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasLoading bool
getter/setter pair
hasNetWork bool
no setter
notNetWorkModel BaseModel
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete<T>(String path, {Map<String, dynamic>? params, Object? data, dynamic tag, bool? loading, bool dataToJson = true, Options? options, CancelToken? cancelToken}) Future<BaseModel>
deleteUri<T>(Uri uri, {Object? data, dynamic tag, bool? loading, bool dataToJson = true, Options? options, CancelToken? cancelToken}) Future<BaseModel>
download(String path, String savePath, {bool? loading, dynamic tag, Options? options, ProgressCallback? onReceiveProgress, CancelToken? cancelToken, Object? data, bool dataToJson = true, Map<String, dynamic>? params, bool deleteOnError = true, String lengthHeader = Headers.contentLengthHeader, Duration receiveTimeout = const Duration(seconds: 40), Duration sendTimeout = const Duration(seconds: 40)}) Future<BaseModel>
文件下载 File download
downloadUri(Uri uri, String savePath, {bool? loading, dynamic tag, Options? options, ProgressCallback? onReceiveProgress, CancelToken? cancelToken, Object? data, bool dataToJson = true, Map<String, dynamic>? params, bool deleteOnError = true, String lengthHeader = Headers.contentLengthHeader, Duration receiveTimeout = const Duration(seconds: 40), Duration sendTimeout = const Duration(seconds: 40)}) Future<BaseModel>
文件下载 File download
get<T>(String path, {dynamic tag, Map<String, dynamic>? params, Object? data, bool? loading, Options? options, CancelToken? cancelToken}) Future<BaseModel>
getUri<T>(Uri uri, {dynamic tag, Object? data, bool? loading, Options? options, CancelToken? cancelToken}) Future<BaseModel>
headUri<T>(Uri uri, {Object? data, dynamic tag, bool? loading, bool dataToJson = true, Options? options, CancelToken? cancelToken}) Future<BaseModel>
initialize({BaseDioOptions? options, BaseDioOptions? downloadOptions, HttpClientAdapter? httpClientAdapter, Transformer? transformer, List<InterceptorsWrapper> interceptors = const []}) BaseDio
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch<T>(String path, {Map<String, dynamic>? params, Object? data, dynamic tag, bool? loading, bool dataToJson = true, Options? options, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, CancelToken? cancelToken}) Future<BaseModel>
patchUri<T>(Uri uri, {Object? data, dynamic tag, bool? loading, bool dataToJson = true, Options? options, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, CancelToken? cancelToken}) Future<BaseModel>
post<T>(String path, {Map<String, dynamic>? params, Object? data, bool dataToJson = true, dynamic tag, bool? loading, Options? options, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, CancelToken? cancelToken}) Future<BaseModel>
postUri<T>(Uri uri, {Object? data, bool dataToJson = true, dynamic tag, bool? loading, Options? options, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, CancelToken? cancelToken}) Future<BaseModel>
put<T>(String path, {Map<String, dynamic>? params, Object? data, dynamic tag, bool? loading, bool dataToJson = true, Options? options, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, CancelToken? cancelToken}) Future<BaseModel>
putUri<T>(Uri uri, {Object? data, dynamic tag, bool? loading, bool dataToJson = true, Options? options, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, CancelToken? cancelToken}) Future<BaseModel>
request<T>(String path, {Map<String, dynamic>? params, Object? data, dynamic tag, bool? loading, bool dataToJson = true, Options? options, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, CancelToken? cancelToken}) Future<BaseModel>
requestUri<T>(Uri uri, {Object? data, dynamic tag, bool? loading, bool dataToJson = true, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) Future<BaseModel>
toString() String
A string representation of this object.
inherited
upload<T>(String path, Object? data, {ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, bool? loading, Options? options, dynamic tag, CancelToken? cancelToken, Duration receiveTimeout = const Duration(seconds: 40), Duration sendTimeout = const Duration(seconds: 40)}) Future<BaseModel>
文件上传 File upload
uploadUri<T>(Uri uri, Object? data, {ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, bool? loading, Options? options, dynamic tag, CancelToken? cancelToken, Duration receiveTimeout = const Duration(seconds: 40), Duration sendTimeout = const Duration(seconds: 40)}) Future<BaseModel>
文件上传 File upload

Operators

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