SlotConfig class final

不可变老虎机配置;列表由调用方保持不可变。

Annotations

Constructors

SlotConfig({List<LuckyBoxBlock> blocks = const [], List<SlotPrize> prizes = const [], List<SlotReel> reels = const [], SlotOptions options = const SlotOptions(), SlotStyle style = const SlotStyle(), SlotWinPredicate winPredicate = upstreamSlotWinPredicate, List<SlotPayline> paylines = const [], SlotPaylinePredicate paylinePredicate = allEqualPaylinePredicate})
创建配置;例如 SlotConfig(prizes: prizes, reels: reels)。
const

Properties

blocks → List<LuckyBoxBlock>
从外到内的装饰块。
final
hashCode → int
与字段值相等性一致的哈希值。
no setteroverride
options → SlotOptions
行为参数。
final
paylinePredicate → SlotPaylinePredicate
赔付线中奖判定。
final
paylines → List<SlotPayline>
赔付线定义;逻辑由拉霸机任务补齐。
final
prizes → List<SlotPrize>
奖品表。
final
reels → List<SlotReel>
各列配置。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → SlotStyle
默认样式。
final
winPredicate → SlotWinPredicate
结束时的中奖判定。
final

Methods

copyWith({List<LuckyBoxBlock>? blocks, List<SlotPrize>? prizes, List<SlotReel>? reels, SlotOptions? options, SlotStyle? style, SlotWinPredicate? winPredicate, List<SlotPayline>? paylines, SlotPaylinePredicate? paylinePredicate}) → SlotConfig
返回仅替换非 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