SnackbarConfig class

Configuration for snackbar appearance and behavior

Constructors

SnackbarConfig()

Properties

defaultAnimation SnackbarAnimation
Default animation style
getter/setter pair
defaultBorderColor Color?
Default border color (null = auto-calculate based on type)
getter/setter pair
defaultBorderRadius BorderRadius?
Default border radius
getter/setter pair
defaultBorderWidth double
Default border width
getter/setter pair
defaultDesignStyle ContentDesignStyle
Default design style: solid (filled) or outlined (light bg + border).
getter/setter pair
defaultDismissible bool
Dismissible by default
getter/setter pair
defaultDismissOnTap bool
Dismiss on tap by default
getter/setter pair
defaultDuration Duration
Default duration
getter/setter pair
defaultEnableHapticFeedback bool
Enable haptic feedback by default
getter/setter pair
defaultMargin EdgeInsets?
Default margin (null = auto-calculate)
getter/setter pair
defaultPosition SnackbarPosition
Default position (snackbar shows at top by default)
getter/setter pair
defaultShowProgressIndicator bool
Show progress indicator by default
getter/setter pair
defaultType SnackbarType
Default type
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
maxWidth double?
Maximum width constraint
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeConfigs Map<SnackbarType, SnackbarTypeConfig>
Type-specific configurations Uses modern Material 3 rounded icons for a softer, contemporary look
getter/setter pair

Methods

applyTheme(Brightness brightness) → void
Apply theme settings
customizeType(SnackbarType type, SnackbarTypeConfig config) → void
Customize a specific type
getBackgroundColor(SnackbarType type, Brightness brightness) Color?
Get background color for a type
getDefaultIcon(SnackbarType type) IconData?
Get default icon for a type
getIconColor(SnackbarType type) Color?
Get icon color for a type
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