BasicDio class

Constructors

BasicDio()
factory

Properties

basicDioOptions BasicDioOptions
getter/setter pair
dio ↔ dynamic
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasLoading bool
getter/setter pair
hasNetWork bool
no setter
notNetWorkModel BasicModel
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, dynamic options, dynamic cancelToken}) Future<BasicModel>
deleteUri<T>(Uri uri, {Object? data, dynamic tag, bool? loading, bool dataToJson = true, dynamic options, dynamic cancelToken}) Future<BasicModel>
download(String path, String savePath, {bool? loading, dynamic tag, dynamic options, dynamic onReceiveProgress, dynamic 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<BasicModel>
文件下载 File download
downloadUri(Uri uri, String savePath, {bool? loading, dynamic tag, dynamic options, dynamic onReceiveProgress, dynamic 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<BasicModel>
文件下载 File download
get<T>(String path, {dynamic tag, Map<String, dynamic>? params, Object? data, bool? loading, dynamic options, dynamic cancelToken}) Future<BasicModel>
getUri<T>(Uri uri, {dynamic tag, Object? data, bool? loading, dynamic options, dynamic cancelToken}) Future<BasicModel>
headUri<T>(Uri uri, {Object? data, dynamic tag, bool? loading, bool dataToJson = true, dynamic options, dynamic cancelToken}) Future<BasicModel>
initialize({BasicDioOptions? options, BasicDioOptions? downloadOptions, dynamic httpClientAdapter, dynamic transformer, List interceptors = const []}) BasicDio
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, dynamic options, dynamic onSendProgress, dynamic onReceiveProgress, dynamic cancelToken}) Future<BasicModel>
patchUri<T>(Uri uri, {Object? data, dynamic tag, bool? loading, bool dataToJson = true, dynamic options, dynamic onSendProgress, dynamic onReceiveProgress, dynamic cancelToken}) Future<BasicModel>
post<T>(String path, {Map<String, dynamic>? params, Object? data, bool dataToJson = true, dynamic tag, bool? loading, dynamic options, dynamic onSendProgress, dynamic onReceiveProgress, dynamic cancelToken}) Future<BasicModel>
postUri<T>(Uri uri, {Object? data, bool dataToJson = true, dynamic tag, bool? loading, dynamic options, dynamic onSendProgress, dynamic onReceiveProgress, dynamic cancelToken}) Future<BasicModel>
put<T>(String path, {Map<String, dynamic>? params, Object? data, dynamic tag, bool? loading, bool dataToJson = true, dynamic options, dynamic onSendProgress, dynamic onReceiveProgress, dynamic cancelToken}) Future<BasicModel>
putUri<T>(Uri uri, {Object? data, dynamic tag, bool? loading, bool dataToJson = true, dynamic options, dynamic onSendProgress, dynamic onReceiveProgress, dynamic cancelToken}) Future<BasicModel>
request<T>(String path, {Map<String, dynamic>? params, Object? data, dynamic tag, bool? loading, bool dataToJson = true, dynamic options, dynamic onSendProgress, dynamic onReceiveProgress, dynamic cancelToken}) Future<BasicModel>
requestUri<T>(Uri uri, {Object? data, dynamic tag, bool? loading, bool dataToJson = true, dynamic options, dynamic cancelToken, dynamic onSendProgress, dynamic onReceiveProgress}) Future<BasicModel>
toString() String
A string representation of this object.
inherited
upload<T>(String path, Object? data, {dynamic onSendProgress, dynamic onReceiveProgress, bool? loading, dynamic options, dynamic tag, dynamic cancelToken, Duration receiveTimeout = const Duration(seconds: 40), Duration sendTimeout = const Duration(seconds: 40)}) Future<BasicModel>
文件上传 File upload
uploadUri<T>(Uri uri, Object? data, {dynamic onSendProgress, dynamic onReceiveProgress, bool? loading, dynamic options, dynamic tag, dynamic cancelToken, Duration receiveTimeout = const Duration(seconds: 40), Duration sendTimeout = const Duration(seconds: 40)}) Future<BasicModel>
文件上传 File upload

Operators

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