onPressBackShowAlertDialog function
Implementation
Future<bool> onPressBackShowAlertDialog() async {
return showAdaptiveDialog(
context: Get.context!,
barrierDismissible: false,
builder: (BuildContext context) {
return DialogAlertOnPressBack();
}).then((value) => value!);
}