success static method

void success(
  1. BuildContext context,
  2. String message, {
  3. Duration? duration,
  4. SnackBarAction? action,
  5. bool? showCloseButton,
  6. bool? showProgressIndicator,
  7. 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,
  );
}