isConnected property
Reactive internet connection state indicator.
Automatically updated based on connectivity changes when
checkInternetConnectivity is enabled. Set to true when connected
to an allowed connectivity type, false otherwise.
Use this to show offline UI or prevent network operations:
if (!isConnected.value) {
Get.snackbar('No Internet', 'Please check your connection');
return;
}
Implementation
RxBool isConnected = true.obs;