SBBDecoratedTextStyle class
Defines the visual properties of SBBDecoratedText.
Use this class to customize how the decorated text appears, including text styling, text color based on widget state, and interaction feedback colors.
Typically applied theme-wide via SBBDecoratedTextThemeData, but can be overridden
per-widget using SBBDecoratedText.widgetStyle.
See also:
- SBBDecoratedText, the widget that uses this style
- SBBDecoratedTextThemeData, for applying styles theme-wide
Constructors
-
SBBDecoratedTextStyle({TextStyle? valueTextStyle, WidgetStateProperty<
Color?> ? valueForegroundColor, WidgetStateProperty<Color?> ? overlayColor}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
-
overlayColor
→ WidgetStateProperty<
Color?> ? -
The overlay color for tap interaction feedback.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
valueForegroundColor
→ WidgetStateProperty<
Color?> ? -
The text color, resolved based on widget state.
final
- valueTextStyle → TextStyle?
-
The base text style for the value text.
final
Methods
-
copyWith(
{TextStyle? valueTextStyle, WidgetStateProperty< Color?> ? valueForegroundColor, WidgetStateProperty<Color?> ? overlayColor}) → SBBDecoratedTextStyle -
merge(
SBBDecoratedTextStyle? other) → SBBDecoratedTextStyle -
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.
override