showErrorSnackBar method

void showErrorSnackBar({
  1. required String message,
  2. Duration duration = const Duration(seconds: 4),
  3. SnackBarAction? action,
})

Implementation

void showErrorSnackBar({
  required String message,
  Duration duration = const Duration(seconds: 4),
  SnackBarAction? action,
}) => showSnackBar(
  message: message,
  textColor: colorScheme.onError,
  backgroundColor: colorScheme.error,
  duration: duration,
  action: action,
);