SnackBarHelper class

Helper for showing snackbars with consistent styling.

Constructors

SnackBarHelper()

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

showError(BuildContext context, String message, {Duration duration = const Duration(seconds: 3)}) → void
Shows an error snackbar with an error icon.
showInfo(BuildContext context, String message, {Duration duration = const Duration(seconds: 2)}) → void
Shows an info snackbar.
showLoading(BuildContext context, String message, {Duration duration = const Duration(seconds: 2)}) → void
Shows a loading snackbar with a progress indicator.
showSuccess(BuildContext context, String message, {Duration duration = const Duration(seconds: 2)}) → void
Shows a success snackbar with a checkmark icon.
showWarning(BuildContext context, String message, {Duration duration = const Duration(seconds: 2)}) → void
Shows a warning snackbar with a warning icon.