NetworkManagerMetaData class Null safety

A Network Manager.

Constructors

NetworkManagerMetaData()
factory

Properties

dioOption BaseOptions
read / write
errorMsgExtractor String Function(dynamic error)
a function to extract error as string
read / write
failedDialog ↔ (Future Function?(BuildContext? context, String title, String body)?)
read / write
globalCancelToken CancelToken?
read / write
hashCode int
The hash code for this object.
read-onlyinherited
onEndDefault Function
called on End every request
read / write
onFailedDefault Function
called on Failed every request
read / write
onStartDefault Function
have several http functions called on start every request
read / write
onSuccessDefault Function
called on Success every request
read / write
onTokenExpire ↔ void Function(void retryFunctoin())
called on token expire
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
successDialog ↔ (Future Function?(BuildContext? context, String title, String body)?)
read / write
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
token String?
String token which is used in header
read / write
tokenExpireRules bool Function(dynamic responseJson)
conditions where token expires
read / write
useFancyDialog bool
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

Static Methods

initialize({String? baseUrl, int timeout = 15000, String? token, Function? onStartDefault, Function? onEndDefault, Function? onSuccessDefault, Function? onFailedDefault, CancelToken? globalCancelToken, bool useFancyDialog = false, Map<String, dynamic>? headers, bool successRules(dynamic responseJson)?, bool tokenExpireRules(dynamic responseJson)?, required Future successDialog(BuildContext? context, String title, String body), required Future failedDialog(BuildContext? context, String title, String body), void onTokenExpire(void retryFunctoin())?, String errorMsgExtractor(dynamic error)?, String successMsgExtractor(dynamic msg)?}) → dynamic
setAccessToken(String token) → dynamic