RxDio class

Rx + dio 网络请求

Constructors

RxDio()
实例类
RxDio.create()
这里是单例
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isUserCache bool
设置默认缓存
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

asFuture<T>() Future<ResponseDates<T>>
asStreams<T>() Stream<ResponseDates<T>>
cancel(CancelToken? cancelToken) → void
取消指定的请求
cancelAll() → void
取消所有请求
cancelList(List<CancelToken>? cancelTokenList) → void
取消指定的请求
dispose() → void
downloadFile<T>() Future<T>
下载文件
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCacheMode(CacheMode cacheMode) → void
setFormData(FormData? formData) → void
setHost(String host) → void
setHttpOptions(Options? options) → void
setParams(Map<String, dynamic>? params) → void
setProgressCallBack(ProgressCallBack? progressCallBack) → void
setRequestMethod(Method method) → void
setSavePath(String? path) → void
setTransFrom<T>(Transformation<T> transformation) → dynamic
setUrl(String url) → void
toString() String
A string representation of this object.
inherited
uploadUrl<T>() Future<T>
上传文件

Operators

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

Static Properties

instance RxDio
no setter