showSnackBarError function
void
showSnackBarError(})
Show error snack bar
showSnackBarError('error message');
Implementation
void showSnackBarError(String content,
{String? title,
int durationSeconds = 6,
bool closePrevious = false}) async {
showSnackBar(content,
title: title ?? WaffLocalizations.S('an_error_occurred'),
durationSeconds: durationSeconds,
backgroundColor: Colors.red,
closePrevious: closePrevious);
}