showBusyStatusAlert method

dynamic showBusyStatusAlert(
  1. Function? function,
  2. BuildContext context
)

Implementation

showBusyStatusAlert(Function? function, BuildContext context) {
  Helper.showAlert(
      message: AppConstants.disableBusy,
      actions: [
        TextButton(
            onPressed: () {
              // Get.back();
              Navigator.pop(context);
            },
            child: Text(
              AppConstants.no,
              style: TextStyle(color: MirrorflyUikit.getTheme?.primaryColor),
            )),
        TextButton(
            onPressed: () async {
              // Get.back();
              Navigator.pop(context);
              await Mirrorfly.enableDisableBusyStatus(false);
              if (function != null) {
                function();
              }
            },
            child: Text(
              AppConstants.yes,
              style: TextStyle(color: MirrorflyUikit.getTheme?.primaryColor),
            )),
      ],
      context: context);
}