showError static method

void showError(
  1. String message, {
  2. String? title,
  3. Duration duration = const Duration(seconds: 4),
  4. BuildContext? context,
})

Muestra un SnackBar de error (rojo)

Implementation

static void showError(
  String message, {
  String? title,
  Duration duration = const Duration(seconds: 4),
  BuildContext? context,
}) {
  show(
    message,
    title: title,
    tone: GpSemanticTone.danger,
    duration: duration,
    context: context,
  );
}