SlotPaylineLayer class final
中奖赔付线的静态前景层;例如传入本局结果与配置中的 paylines。
- Inheritance
-
- Object
- LuckyLayer<
SlotLayout, SlotFrame> - SlotPaylineLayer
Constructors
-
SlotPaylineLayer({required SlotResult? result, List<
SlotPayline> paylines = const [], SlotMode mode = SlotMode.vertical}) -
result为 null 时不绘制;paylines、mode应与老虎机配置一致。const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isStatic → bool
-
是否录入静态缓存。
finalinherited
- mode → SlotMode
-
决定偏移沿纵轴还是横轴。
final
-
paylines
→ List<
SlotPayline> -
赔付线定义,结果的 winningPaylines 是本列表下标。
final
- position → LuckyLayerPosition
-
绘制位置。
finalinherited
- result → SlotResult?
-
当前局结果;无结果时不显示高亮。
final
- rotatesWithWheel → bool
-
是否随盘旋转。
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paint(
Canvas canvas, LuckyLayerContext< SlotLayout, SlotFrame> context) → void -
将中奖线连接到对应行的格子中心;无效定义跳过。
override
-
shouldRepaint(
covariant SlotPaylineLayer oldLayer) → bool -
结果、定义或方向变化时重录高亮。
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited