showWarningSnackBar method

Future<bool> showWarningSnackBar(
  1. String message, {
  2. String? title,
  3. SnackBarContent content = const SnackBarContent(id: "warning_snack_bar"),
})

Shows a warning-themed SnackBar with the provided warning message.

Example:

context.showWarningSnackBar("This is a warning message");

Implementation

Future<bool> showWarningSnackBar(
  String message, {
  String? title,
  SnackBarContent content = const SnackBarContent(id: "warning_snack_bar"),
}) {
  return Dialogs.i.snackBarWarning(
    this,
    message,
    title: title,
    content: content,
  );
}