onPressBackShowAlertDialog function

Future<bool> onPressBackShowAlertDialog()

Implementation

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