ZoConnectivityWatcher class

Constructors

ZoConnectivityWatcher()
factory

Properties

currentContext BuildContext
no setter
hashCode int
The hash code for this object.
no setterinherited
isInternetAvailable bool
getter/setter pair
isNoInternetWidgetVisible bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<ConnectivityWatcherStatus>
no setter

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

Operators

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