showErrorDialog static method

void showErrorDialog(
  1. BuildContext context,
  2. String title,
  3. String message,
  4. String actionButtonText,
)

Implementation

static void showErrorDialog(BuildContext context, String title,
    String message, String actionButtonText) {
  showDialog(
      context: context,
      builder: (context) {
        return AlertDialog(
          title: Text(title),
          content: Text(message),
          actions: [
            TextButton(
              onPressed: () {
                Navigator.pop(context);
              },
              child: Text(actionButtonText),
            ),
          ],
        );
      });
}