showUpdateDialog static method

void showUpdateDialog({
  1. required dynamic callback(
    1. bool value
    ),
  2. dynamic onCancel(
    1. bool value
    )?,
})

Implementation

static void showUpdateDialog({
  required Function(bool value) callback,
   Function(bool value) ?onCancel,
}) {
  showCupertinoDialog(
    context: Get.context!,
    builder: (BuildContext context) {
      return getDialogTwoButton(context, StringConst.UPDATE, StringConst.UPDATE_MESSAGE, StringConst.YES, StringConst.NO, callback, onCancel);
    },
    barrierDismissible: true,
  );
}