comm_http
library
Functions
-
request<T>(Future<Response> request(), {dynamic onSuccess(T?)?, dynamic onFail(String?, String?)?})
→ Future<void>
-
请求数据,,返回data数据为原始数据类型
-
requestBool(Future<Response> request(), {dynamic onSuccess(bool)?, dynamic onFail(String?, String?)?, bool isThrowEx = true})
→ Future<void>
-
请求数据,返回bool数据,接口调用成功就返回结果
-
requestFuture<T>(Future<Response> request(), {dynamic onFail(String?, String?)?})
→ Future<T?>
-
请求数据,,返回data数据为原始数据类型
-
requestFutureList<T>(Future<Response> request(), T fromJsonT(dynamic json), {dynamic onFail(String?, String?)?})
→ Future<List<T>?>
-
请求数据,返回集合
-
requestFutureT<T>(Future<Response> request(), T fromJsonT(dynamic json), {dynamic onFail(String?, String?)?})
→ Future<T?>
-
请求数据,返回data数据为对象
-
requestList<T>(Future<Response> request(), T fromJsonT(dynamic json), {dynamic onSuccess(List<T>?)?, dynamic onFail(String?, String?)?})
→ Future<void>
-
请求数据,返回集合
-
requestT<T>(Future<Response> request(), T fromJsonT(dynamic json), {dynamic onSuccess(T?)?, dynamic onFail(String?, String?)?})
→ Future<void>
-
请求数据,返回data数据为对象