showLogoutDialog static method

void showLogoutDialog({
  1. required dynamic callback(
    1. bool value
    ),
})

Implementation

static void showLogoutDialog({
  required Function(bool value) callback,
}) {
  showCupertinoDialog(
    context: Get.context!,
    builder: (BuildContext context) {
      return getDialogTwoButton(context, StringConst.LOGOUT, StringConst.LOGOUT_MESSAGE, StringConst.YES, StringConst.NO, callback);
    },
    barrierDismissible: true,
  );
}