DemonHttp class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
pendingRequest
↔ List<CancelToken?>
-
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createDioCancelToken(CancelToken? cancelToken)
→ CancelToken
-
-
get(String path, {Map<String, dynamic>? params, bool isLoading = false, bool needResponse = true, bool isCustomResponse = false, FailFunction? fail})
→ Future
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
post(String path, {Map<String, dynamic>? params, dynamic data, bool isLoading = false, bool needResponse = true, bool isCustomResponse = false, FailFunction? fail})
→ Future
-
-
request(String path, {String method = "GET", Map<String, dynamic>? params, dynamic data, Options? options, CancelToken? cancelToken, bool refresh = false, bool noCache = true, String? cacheKey, bool needResponse = true, bool cacheDisk = false, bool isLoading = false, bool isCustomResponse = false, FailFunction? fail})
→ Future
-
-
toString()
→ String
-
A string representation of this object.
inherited
Static Properties
-
dio
↔ Dio
-
latefinal