show static method

void show(
  1. String message, {
  2. VoidCallback? callback,
})

Implementation

static void show(String message, {VoidCallback? callback}) {
  showDialog(
    context: navigatorKey.currentState!.context,
    builder: (BuildContext context) {
      return CustomAlertDialog(
        message: message,
        callback: callback,
      );
    },
  );
}