NetConstants class
Constructors
Properties
- baseUrl ↔ String?
-
request base url
getter/setter pair
- connectTimeOut ↔ Duration?
-
连接超时时间
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ Map<
String, dynamic> ? -
请求头
getter/setter pair
- httpClientAdapter ↔ HttpClientAdapter?
-
dio 和 HttpClient 桥梁
getter/setter pair
-
interceptors
↔ List<
Interceptor> ? -
拦截器
getter/setter pair
- proxy ↔ String?
-
代理服务器
getter/setter pair
- receiveTimeOut ↔ Duration?
-
数据接收超时时间
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendTimeOut ↔ Duration?
-
数据发送超时时间
getter/setter pair
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