info static method

void info(
  1. BuildContext context,
  2. String message, {
  3. Duration? duration,
  4. SnackBarAction? action,
  5. bool? showCloseButton,
  6. bool? showProgressIndicator,
  7. SnackbarPosition? position,
})

Shows an info snackbar with an info icon.

Implementation

static void info(
  BuildContext context,
  String message, {
  Duration? duration,
  SnackBarAction? action,
  bool? showCloseButton,
  bool? showProgressIndicator,
  SnackbarPosition? position,
}) {
  show(
    context,
    message: message,
    backgroundColor: SnackbarColors.infoBackground,
    textColor: SnackbarColors.infoText,
    icon: Icons.info,
    duration: duration,
    action: action,
    showCloseButton: showCloseButton,
    showProgressIndicator: showProgressIndicator,
    position: position,
  );
}