AppSnackbar class
Modern snackbar helper with Material Design 3 styling.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
error(
{required BuildContext context, required String message, Duration? duration}) → void - Show an error snackbar with error icon.
-
info(
{required BuildContext context, required String message, Duration? duration}) → void - Show an info snackbar with info icon.
-
show(
{required BuildContext context, required String message, SnackbarType? type, Duration? duration, SnackBarAction? action, Color? backgroundColor, Color? textColor, IconData? icon}) → void - Generic method for full customization.
-
success(
{required BuildContext context, required String message, Duration? duration}) → void - Show a success snackbar with check icon.
-
undo(
{required BuildContext context, required String message, required VoidCallback onUndo, Duration? duration, String? undoLabel}) → void - Show an undo snackbar with undo action button.
-
warning(
{required BuildContext context, required String message, Duration? duration}) → void - Show a warning snackbar with warning icon.