showError static method

void showError(
  1. BuildContext context,
  2. String message
)

Shows an error snack bar using the context.

Parameters:

  • context: The build context
  • message: The error message to display

Implementation

static void showError(BuildContext context, String message) {
  show(context, message, false);
}