showCustomAlertDialog<T> function

Future<T?> showCustomAlertDialog<T>({
  1. required BuildContext context,
  2. required CustomAlertDialogType type,
  3. required String title,
  4. required String content,
})

Implementation

Future<T?> showCustomAlertDialog<T>({
  required BuildContext context,
  required CustomAlertDialogType type,
  required String title,
  required String content,
}) {
  return showDialog<T>(
    context: context,
    builder: (BuildContext context) {
      return CustomAlertDialog(
        type: type,
        title: title,
        content: content,
      );
    },
  );
}