showCustomDialog method

Future<void> showCustomDialog(
  1. BuildContext context,
  2. Widget alertDialog
)

Implementation

Future<void> showCustomDialog(
    BuildContext context, Widget alertDialog) async {
  return showDialog<void>(
    context: context,
    barrierDismissible: true,
    builder: (BuildContext _context) {
      return alertDialog;
    },
  );
}