ZoConnectivityWatcher class
Methods
-
hideNoInternet()
→ Future<bool>
-
Use this method to forcefully hide the no internet widget
The function
hideNoInternet returns a Future bool that hides the no internet screen by
accessing the controller from an inherited widget.
-
makeApiCall({required dynamic apiCall(bool internetStatus)})
→ dynamic
-
The function
makeApiCall checks for internet connection status and calls the provided API function
with the status.
-
makeApiCallWithRetry({required Future<void> apiCall(), int maxRetries = 3, Duration delay = const Duration(seconds: 2)})
→ dynamic
-
The function
makeApiCallWithRetry retries an API call with a specified maximum number of retries
and delay duration.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
setNavigatorKey(GlobalKey<NavigatorState> key)
→ dynamic
-
-
setUp()
→ dynamic
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateStream(ConnectivityWatcherStatus status)
→ dynamic
-