warning static method
void
warning(})
Helper for a WARNING toast.
Implementation
static void warning(
BuildContext context, {
required String message,
Duration duration = const Duration(seconds: 3),
bool top = false,
int maxLines = 4,
double? iconSize,
TextStyle? textStyle,
Color? backgroundColor,
Color? textColor,
Color? shadowColor,
}) {
show(
context,
message: message,
icon: Icons.warning_amber_rounded,
backgroundColor: backgroundColor ?? Colors.orange.shade800,
textColor: textColor ?? Colors.white,
duration: duration,
top: top,
maxLines: maxLines,
iconSize: iconSize,
textStyle: textStyle,
shadowColor: shadowColor ?? Colors.orange.shade900,
elevation: 6.0,
);
}