LuckyTextOverride class final

激活态文字覆盖;null 表示保留普通态对应值。

例如 const LuckyTextOverride(fontWeight: FontWeight.w700) 覆盖激活态字重。

Annotations

Constructors

LuckyTextOverride({Color? color, double? fontSize, String? fontFamily, List<String>? fontFamilyFallback, FontWeight? fontWeight, double? lineHeight})
创建配置,未指定的可选字段使用声明的默认值。
const

Properties

color → Color?
激活态文字颜色。
final
fontFamily → String?
激活态字体族。
final
fontFamilyFallback → List<String>?
激活态后备字体族;调用方须保持列表不可变。
final
fontSize → double?
激活态字号(逻辑像素)。
final
fontWeight → FontWeight?
激活态字重。
final
hashCode → int
与字段值相等性一致的哈希值。
no setteroverride
lineHeight → double?
激活态行高;激活字号不参与普通行高的回退。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Color? color, double? fontSize, String? fontFamily, List<String>? fontFamilyFallback, FontWeight? fontWeight, double? lineHeight}) → LuckyTextOverride
返回只替换指定字段的副本;参数为 null 时保留原值。
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
按字段值比较配置,列表按内容比较。
override