error static method
void
error({
- required String message,
- String? title,
- IconData? icon,
- Duration? duration,
- String? actionLabel,
- VoidCallback? onAction,
- bool showCloseIcon = false,
- VoidCallback? onDismiss,
Red error snackbar. UToast.error(message: "Could not connect")
Implementation
static void error({
required String message,
String? title,
IconData? icon,
Duration? duration,
String? actionLabel,
VoidCallback? onAction,
bool showCloseIcon = false,
VoidCallback? onDismiss,
}) => snackBar(
message: message,
title: title,
type: UToastType.error,
icon: icon,
duration: duration ?? Duration(seconds: U.snackBarDuration),
actionLabel: actionLabel,
onAction: onAction,
showCloseIcon: showCloseIcon,
onDismiss: onDismiss,
);