UISnackbarStyle class

Visual styling for UISnackbar.

Constructors

UISnackbarStyle({required Color backgroundColor, required TextStyle textStyle, required Color successColor, required Color errorColor, required Color closeIconColor})
const
UISnackbarStyle.fromTheme(BuildContext context, {Color? backgroundColor, TextStyle? textStyle, Color? successColor, Color? errorColor, Color? closeIconColor})
Builds a theme-driven style from the ambient Theme, keeping UISnackbar consistent with the kit's theme-first factory convention. Any parameter overrides the resolved theme value.
factory

Properties

backgroundColor Color
final
closeIconColor Color
final
errorColor Color
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
successColor Color
final
textStyle TextStyle
final

Methods

copyWith({Color? backgroundColor, TextStyle? textStyle, Color? successColor, Color? errorColor, Color? closeIconColor}) UISnackbarStyle
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