DdTaokeUtil class

Constructors

DdTaokeUtil()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
ip String
no setter
port String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tkApi String
final

Methods

createInstance() → Dio?
创建dio实例
errorHandle(ApiError? error, int code, String message, {dynamic data}) → void
请求没有正常执行
get(String url, {Map<String, dynamic>? data, ApiError? error, OnRequestStart? onStart, bool? isTaokeApi, ResultDataMapHandle? mapData, CancelToken? cancelToken, ValueChanged? otherDataHandle}) Future<String>
发起http请求
init(String host, String port, {String? proxy, OnRequestStart? onStart, bool debug = true, bool printParams = true}) → void
初始化服务器地址和端口
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(String url, {Map<String, dynamic>? data, OnRequestStart? onStart, ApiError? error, bool? isTaokeApi, ValueChanged? otherDataHandle}) Future<String>
POST 请求
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

dio ↔ Dio?
getter/setter pair
instance DdTaokeUtil
no setter