Retrofit class

Constructors

Retrofit({String api = "", Method method = Method.POST, ContentType contentType = ContentType.json, int hostType = 0, String cacheKey = "", int cacheTime = 0, bool enableIntervalRefresh = true})

Properties

api String
接口相对地址
final
cacheKey String
缓存key
final
cacheTime int
缓存时间(毫秒)
final
contentType ContentType
请求内容数据格式
final
enableIntervalRefresh bool
在有效缓存期间启用间隔刷新
final
hashCode int
The hash code for this object.
no setterinherited
hostType int
api主机类型
final
method Method
接口请求方法
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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