showErrorSnackBar method
void
showErrorSnackBar({})
showSnackBar shows a snackbar message.
backgroundColor
is red by default.
foregroundColor
is white by default.
Implementation
void showErrorSnackBar(
{required String message,
Duration displayDuration = const Duration(seconds: 4),
bool showCloseIcon = false}) {
showSnackBar(
message: message,
backgroundColor: Colors.red,
displayDuration: displayDuration,
showCloseIcon: showCloseIcon);
}