showPlatformAlert method
void
showPlatformAlert()
Implementation
void showPlatformAlert() {
currentContext = _contextKey.currentContext;
if (currentContext == null) {
return;
}
isAlertActive = true;
showNativeDialogue(
currentContext!,
() {
isInternetBack(
internetStatus: (status) {
if (status) {
isAlertActive = false;
Navigator.pop(currentContext!);
} else {
Navigator.pop(currentContext!);
Future.delayed(
const Duration(seconds: 1),
showPlatformAlert,
);
}
},
);
},
);
}