showAlertDialog method

Future<void> showAlertDialog(
  1. String title,
  2. String message
)

Implementation

Future<void> showAlertDialog(String title, String message) {
  return showDialog(
    context: context,
    builder: (context) {
      return AlertDialog(
        title: Text(title),
        content: Text(message),
      );
    },
  );
}