SlotGame class final

无状态老虎机规则,可直接用于 LuckyGameView 或注册表。

Inheritance

Constructors

SlotGame()
创建规则。
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
itemGeometry → LuckyItemGeometry<SlotLayout, SlotFrame>
返回各轮条带位置及循环副本的几何,洞保留位置但不可见。
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
wantsPanGestures → bool
是否启用拖动手势。
no setterinherited

Methods

collectImages(SlotConfig config, SlotLayout layout) → List<LuckyImageRequest>
收集块和格子的全部图片及逻辑解码尺寸。
override
computeLayout(SlotConfig config, LuckyLayoutInput input) → SlotLayout
计算可见窗口布局。
override
createController() → SlotController
创建由宿主负责释放的控制器。
override
createDefaultRenderer() → SlotCanvasRenderer
创建默认可见窗口后端。
override
handlePan(LuckyController<SlotConfig, SlotLayout, SlotFrame, SlotResult> controller, SlotLayout layout, LuckyPanEvent event) → void
接收拖动事件;默认无操作。
inherited
hitTestAll(SlotConfig config, SlotLayout layout, SlotFrame frame, Offset position) → List<LuckyHit>
返回全部命中;重叠按钮按列表顺序逐个触发,无命中返回空。
inherited
isStructuralChange(SlotConfig oldConfig, SlotConfig newConfig) → bool
列数、顺序、奖品数和格距改变属于结构变更。
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveConfig(BuildContext context, SlotConfig config) → SlotConfig
按运行环境(例如系统减少动效)解析实际使用的配置;默认原样返回。
inherited
semanticsLabel(SlotConfig config) → String
默认读屏标签。
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited