SnackbarStateConfig class

Configuration for individual snackbar state appearance

Annotations

Constructors

SnackbarStateConfig({Color? backgroundColor, Color? textColor, IconData? icon, Color? iconColor, double iconSize = 24.0, double fontSize = 14.0, FontWeight? fontWeight, BorderRadius? borderRadius, double elevation = 6.0, Color? shadowColor, bool showIcon = true, Widget? customContent, SnackBarAction? action})
const

Properties

action → SnackBarAction?
Action button/widget for the snackbar
final
backgroundColor → Color?
Background color of the snackbar
final
borderRadius → BorderRadius?
Border radius of the snackbar
final
customContent → Widget?
Custom widget to replace default snackbar content
final
elevation → double
Elevation (shadow depth) of the snackbar
final
fontSize → double
Font size of the message text
final
fontWeight → FontWeight?
Font weight of the message text
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
Icon to display in the snackbar
final
iconColor → Color?
Color of the icon
final
iconSize → double
Size of the icon
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shadowColor → Color?
Shadow color for the snackbar
final
showIcon → bool
Whether to show the icon
final
textColor → Color?
Text color of the message
final

Methods

copyWith({Color? backgroundColor, Color? textColor, IconData? icon, Color? iconColor, double? iconSize, double? fontSize, FontWeight? fontWeight, BorderRadius? borderRadius, double? elevation, Color? shadowColor, bool? showIcon, Widget? customContent, SnackBarAction? action}) → SnackbarStateConfig
Copy with method for easy customization
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