onPressBackShowAlertDialog1 function

Future<bool> onPressBackShowAlertDialog1()

Implementation

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