XSnackbarType class
Defines the color of the snackbar. Used internally by XSnackbar.
Includes built-in presets and a custom constructor for complete control.
Constructors
- XSnackbarType.custom(Color? color)
-
Creates a custom-colored snackbar type.
const
- XSnackbarType.error()
-
Error snackbar (red).
const
- XSnackbarType.info()
-
Info snackbar; uses theme primary color if no custom color is defined.
const
- XSnackbarType.success()
-
Success snackbar (green).
const
- XSnackbarType.warning()
-
Warning snackbar (orange).
const
Properties
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