NetRequest class

Constructors

NetRequest()
Config

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, Map<String, dynamic>? headers, bool isShowLoading = true}) Future<Map<String, dynamic>?>
Get
getString(String apiUrl, {Map<String, dynamic>? parameters, Map<String, dynamic>? headers, 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, Map<String, dynamic>? headers, bool isShowLoading = true}) Future<Map?>
Post
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

dio ↔ Dio
Property
getter/setter pair
shared NetRequest
no setter