showError static method
void
showError(})
Implementation
static void showError(
BuildContext context, {
/// Message of the toast
String? message,
/// Whether to forbid click
bool forbidClick = false,
/// Size of the icon
double? iconSize,
/// Color of the icon
Color? iconColor,
/// Text color of the toast
Color? textColor,
/// Font size of the toast
double? fontSize,
}) {
show(
context,
message: message,
position: BetterToastPosition.center,
forbidClick: forbidClick,
width: 120.bw,
height: 120.bw,
icon: Icon(
Icons.error,
color: iconColor ?? Colors.white,
size: iconSize ?? 40.bw,
),
textColor: textColor,
);
}