error static method
void
error({
- required String message,
- String? title,
- IconData? icon,
- Duration duration = const Duration(seconds: 4),
- String? actionLabel,
- VoidCallback? onAction,
- bool showCloseIcon = false,
- VoidCallback? onDismiss,
Implementation
static void error({
required String message,
String? title,
IconData? icon,
Duration duration = const Duration(seconds: 4),
String? actionLabel,
VoidCallback? onAction,
bool showCloseIcon = false,
VoidCallback? onDismiss,
}) =>
snackBar(
message: message,
title: title,
type: UToastType.error,
icon: icon,
duration: duration,
actionLabel: actionLabel,
onAction: onAction,
showCloseIcon: showCloseIcon,
onDismiss: onDismiss,
);