EDio class

dio扩展

Constructors

EDio()
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
TAG String
read / write

Methods

dio() Dio
get<T>(String uri, {Map<String, dynamic> params, Options options}) Future<Response>
GET请求方法 @param {string} uri 请求地址 @param {map} params 请求入参 @param {Options} options 请求配置
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
post<T>(String uri, {Map<String, dynamic> params, Options options}) Future<Response>
POST请求方法 @param {string} uri 请求地址 @param {map} params 请求入参 @param {Options} options 请求配置
request<T>(String uri, {Map<String, dynamic> params, Options options, String method}) Future<Response>
setStrategy(SignStrategy signStrategy) → void
设置接口签名策略
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Properties

config ↔ Config
read / write