showOKDialog method

dynamic showOKDialog({
  1. required String message,
  2. required String title,
  3. String? textOK,
  4. VoidCallback? onOKPressed,
  5. Widget? content,
  6. bool barrierDismissible = false,
})

Implementation

showOKDialog(
    {required String message,
    required String title,
    String? textOK,
    VoidCallback? onOKPressed,
    Widget? content,
    bool barrierDismissible = false}) {
  Get.defaultDialog(
      title: title,
      middleText: message,
      barrierDismissible: barrierDismissible,
      backgroundColor: Get.theme.colorScheme.background,
      content: content,
      confirm: _getDialogBoxButton(textOK ?? LocaleKeys.generic_ok.tr,
          onOKPressed ?? () => Get.back()),
      radius: 8);
}