SlotPrize class final

奖品格;例如 const SlotPrize(weight: 1) 可参与默认选奖。

Annotations

Constructors

SlotPrize({LuckyFill? background, double? borderRadius, List<LuckyText> texts = const [], List<LuckyImage> images = const [], double? weight, bool disabled = false, SlotCellPainter? painter})
创建奖品;可选样式为 null 时继承默认值,圆角零也生效。
const

Properties

background → LuckyFill?
格子背景。
final
borderRadius → double?
圆角半径,逻辑像素。
final
disabled → bool
是否排除默认选奖;显式停止仍可指定。
final
hashCode → int
与字段值相等性一致的哈希值。
no setteroverride
images → List<LuckyImage>
图片列表。
final
painter → SlotCellPainter?
格子局部绘制回调。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
texts → List<LuckyText>
文字列表,保留空行。
final
weight → double?
默认选奖权重,null 不可选。
final

Methods

copyWith({LuckyFill? background, double? borderRadius, List<LuckyText>? texts, List<LuckyImage>? images, double? weight, bool? disabled, SlotCellPainter? painter}) → SlotPrize
返回仅替换非 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