CapsuleStyle class final
扭蛋机配色与奖品卡样式。
- Annotations
Constructors
- CapsuleStyle({LuckyFill? globeFill, LuckyFill? bodyFill, LuckyFill? knobFill, Color seamColor = const Color(0x33000000), LuckyCellStyle card = const LuckyCellStyle(background: LuckyFill.color(Color(0xFFFFFFFF)), borderRadius: 12), LuckyTextDefaults text = const LuckyTextDefaults()})
-
创建不可变配置;列表由调用方保持不可变。
const
Properties
- bodyFill → LuckyFill?
-
机身填充;空时使用红色。
final
- card → LuckyCellStyle
-
奖品卡样式。
final
- globeFill → LuckyFill?
-
球体背面填充;空时使用透明蓝色。
final
- hashCode → int
-
与字段值一致的哈希。
no setteroverride
- knobFill → LuckyFill?
-
旋钮填充;空时使用白色。
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seamColor → Color
-
胶囊接缝颜色。
final
- text → LuckyTextDefaults
-
卡片文字默认值。
final
Methods
-
copyWith(
{LuckyFill? globeFill, LuckyFill? bodyFill, LuckyFill? knobFill, Color? seamColor, LuckyCellStyle? card, LuckyTextDefaults? text}) → CapsuleStyle -
返回替换非空参数的副本,例如
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