NetRequest class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
config({required Duration? connectTimeout, required Duration? receiveTimeout})
→ void
-
Func
配置
-
getJson(String apiUrl, {Map<String, dynamic>? parameters, bool isShowLoading = true})
→ Future<Map<String, dynamic>?>
-
Get
-
getString(String apiUrl, {Map<String, dynamic>? parameters, bool isShowLoading = true})
→ Future<String?>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
postJson(String apiUrl, {Map<String, dynamic>? parameters, bool isShowLoading = true})
→ Future<Map?>
-
Post
-
toString()
→ String
-
A string representation of this object.
inherited