error static method
ScaffoldFeatureController<SnackBar, SnackBarClosedReason>
error(
- BuildContext context,
- String message, {
- String? title,
- String? actionText,
- VoidCallback? onTap,
- Duration? duration,
Shows an error/danger snackbar.
Implementation
static ScaffoldFeatureController<SnackBar, SnackBarClosedReason> error(
BuildContext context,
String message, {
String? title,
String? actionText,
VoidCallback? onTap,
Duration? duration,
}) {
return show(
context,
message,
title: title,
icon: Icons.error_outline_rounded,
color: context.theme.danger,
actionText: actionText,
onTap: onTap,
duration: duration,
);
}