NetworkManagerAsync class

Constructors

NetworkManagerAsync.instance({required String api, required dynamic req, Map<String, dynamic>? query, CancelToken? cancelToken, Map<String, dynamic>? headers})
factory

Properties

api String?
api address you're requesting
getter/setter pair
cancelToken ↔ CancelToken?
getter/setter pair
dio ↔ Dio?
dio instance for making requests
getter/setter pair
dioOption ↔ BaseOptions
getter/setter pair
errorMsgExtractor ↔ (String Function(dynamic error)?)
a function to extract error as string
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
onTokenExpire ↔ (void Function(void retryFunctoin())?)
called on token expire
getter/setter pair
query Map<String, dynamic>?
Map
getter/setter pair
req ↔ dynamic
dynamic request data for post methods
getter/setter pair
requestPostAsync → dynamic
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
successMsgExtractor ↔ (String Function(dynamic msg)?)
getter/setter pair
successRules ↔ (bool Function(dynamic responseJson)?)
other rules for check beside result code 200 should be a function return bool value
getter/setter pair
tokenExpireRules ↔ (bool Function(dynamic responseJson)?)
conditions where token expires
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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