NetworkManagerAsync class Null safety

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
read / write
cancelToken CancelToken?
read / write
dio Dio?
dio instance for making requests
read / write
dioOption BaseOptions
read / write
errorMsgExtractor ↔ (String Function?(dynamic error)?)
a function to extract error as string
read / write
hashCode int
The hash code for this object.
read-onlyinherited
onTokenExpire ↔ (void Function?(void retryFunctoin())?)
called on token expire
read / write
query Map<String, dynamic>?
Map
read / write
req ↔ dynamic
dynamic request data for post methods
read / write
requestPostAsync → dynamic
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
successMsgExtractor ↔ (String Function?(dynamic msg)?)
read / write
successRules ↔ (bool Function?(dynamic responseJson)?)
other rules for check beside result code 200 should be a function return bool value
read / write
tokenExpireRules ↔ (bool Function?(dynamic responseJson)?)
conditions where token expires
read / write

Methods

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

Operators

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