showErrorSnackBar method
Shows a SnackBar with given error msg
Implementation
void showErrorSnackBar(
String msg, {
Color? backgroundColor,
Duration? duration,
}) {
showSnackBar(
text: "Error: $msg",
textStyle: customTheme.errorSnackBarTextStyle,
color: backgroundColor ?? customTheme.errorSnackBarColor,
duration: duration ?? customTheme.errorSnackBarDuration,
);
}