showErrorAlert static method

void showErrorAlert({
  1. String? title,
  2. String? message,
})

Show an error alert

Implementation

static void showErrorAlert({String? title, String? message}) {
  _showDialog(
    title: title ?? "Error",
    content: message,
    icon: Icons.error_outline_rounded,
    color: Colors.redAccent,
  );
}