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