SocketManagerMetaData class Null safety

Constructors

SocketManagerMetaData()
factory

Properties

endRules bool Function(dynamic responseJson)
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
failedRules bool Function(dynamic responseJson)
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
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)
read / write
tcpAddress String?
read / write
tcpPort int?
read / write
timeOut Duration?
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? tcpAddress, int? tcpPort, Duration timeout = const Duration(milliseconds: 15000), Function? onStartDefault, Function? onEndDefault, Function? onSuccessDefault, Function? onFailedDefault, bool useFancyDialog = false, bool successRules(dynamic responseJson)?, bool tokenExpireRules(dynamic responseJson)?, Future successDialog(BuildContext context, String title, String body)?, Future failedDialog(BuildContext context, String title, String body)?, void onTokenExpire(void retryFunctoin())?, String errorMsgExtractor(dynamic error)?, String successMsgExtractor(dynamic msg)?}) → dynamic