getConfirm method

void getConfirm({
  1. double? width,
  2. String? msg,
  3. String lang = 'ko',
  4. Function? callback,
  5. Function? noCallback,
})

Implementation

void getConfirm({double? width, String? msg, String lang = 'ko', Function? callback, Function? noCallback}) {
  callBackDialog.getConfirmAltCb(
      width: width,
      msg: msg,
      lang: lang,
      callBack: () {
        if (callback != null) {
          callback();
        } else {
          // ignore: avoid_print
          print("NO CALLBACK");
        }
      },
      noCallBack: () {
        if (noCallback != null) {
          noCallback();
        } else {
          // ignore: avoid_print
          print("NO CALLBACK");
        }
      });
}