success static method
void
success(
- BuildContext context,
- String message, {
- Duration? duration,
- SnackBarAction? action,
- bool? showCloseButton,
- bool? showProgressIndicator,
- SnackbarPosition? position,
Shows a success snackbar with a checkmark icon.
Implementation
static void success(
BuildContext context,
String message, {
Duration? duration,
SnackBarAction? action,
bool? showCloseButton,
bool? showProgressIndicator,
SnackbarPosition? position,
}) {
show(
context,
message: message,
backgroundColor: SnackbarColors.successBackground,
textColor: SnackbarColors.successText,
icon: Icons.check_circle,
duration: duration,
action: action,
showCloseButton: showCloseButton,
showProgressIndicator: showProgressIndicator,
position: position,
);
}