SlotStyle class final
默认格子和文字样式。
- Annotations
Constructors
- SlotStyle({LuckyCellStyle cell = const LuckyCellStyle(background: LuckyFill.color(kLuckyTransparent), borderRadius: 0), LuckyTextDefaults text = const LuckyTextDefaults()})
-
创建样式;格子默认透明、无圆角。
const
Properties
- cell → LuckyCellStyle
-
格子装饰。
final
- hashCode → int
-
与字段值相等性一致的哈希值。
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → LuckyTextDefaults
-
默认文字样式。
final
Methods
-
copyWith(
{LuckyCellStyle? cell, LuckyTextDefaults? text}) → SlotStyle -
返回仅替换非 null 参数的副本;例如
value.copyWith()保留全部配置。 -
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