SocketManagerMetaData class
Constructors
- SocketManagerMetaData()
-
factory
Properties
- endRules ↔ bool Function(dynamic responseJson)
-
getter/setter pair
- errorMsgExtractor ↔ String Function(dynamic error)
-
a function to extract error as string
getter/setter pair
- failedDialog ↔ (Future Function(BuildContext context, String title, String body)?)
-
getter/setter pair
- failedRules ↔ bool Function(dynamic responseJson)
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- onEndDefault ↔ Function
-
called on End every request
getter/setter pair
- onFailedDefault ↔ Function
-
called on Failed every request
getter/setter pair
- onStartDefault ↔ Function
-
called on start every request
getter/setter pair
- onSuccessDefault ↔ Function
-
called on Success every request
getter/setter pair
- onTokenExpire ↔ void Function(void retryFunctoin())
-
called on token expire
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- successDialog ↔ (Future Function(BuildContext context, String title, String body)?)
-
getter/setter pair
- successMsgExtractor ↔ (String Function(dynamic msg)?)
-
getter/setter pair
- successRules ↔ bool Function(dynamic responseJson)
-
getter/setter pair
- tcpAddress ↔ String?
-
getter/setter pair
- tcpPort ↔ int?
-
getter/setter pair
- timeOut ↔ Duration?
-
getter/setter pair
- tokenExpireRules ↔ bool Function(dynamic responseJson)
-
conditions where token expires
getter/setter pair
- useFancyDialog ↔ bool
-
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
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