BackgroundStyles class

Defines background and border styles for widgets in the SDK

Widgets using this class will use default values from the app's theme, as defined in BackgroundStyles.merge

Constructors

BackgroundStyles({required Color? backgroundColor, required Color? borderColor, required double? borderWidth, required double? borderRadius})
Define custom background styles by providing values for each property
const
BackgroundStyles.merge({BackgroundStyles? otherStyles, required ThemeData? theme})
Define custom background styles by merging otherStyles and values from theme
factory
BackgroundStyles.only({Color? backgroundColor, Color? borderColor, double? borderWidth, double? borderRadius})
Define custom background styles by providing values for only the properties you want to customize
const

Properties

backgroundColor Color?
The background color of the widget
final
borderColor Color?
The color of the widget's border
final
borderRadius double?
The corner radius of the widget's border
final
borderWidth double?
The width of the widget's border
final
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

Constants

defaultBorderColor → const Color
Default border color
defaultBorderRadius → const double
Default border radius
defaultBorderWidth → const double
Default border width
defaultDarkThemeBackgroundColor → const Color
Default background color for dark theme
defaultLightThemeBackgroundColor → const Color
Default background color for light theme