showError static method

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

Implementation

static void showError(BuildContext context, String message) {
  ScaffoldMessenger.of(context).showSnackBar(SnackBar(
    content: Text(message),
  ));
}