SlotResult class final
一局各列目标和中奖奖品;indices 为奖品下标而非条带位置。
- Inheritance
-
- Object
- LuckyResult<
SlotPrize> - SlotResult
- Annotations
Constructors
-
SlotResult({required List<
int> indices, int? index, SlotPrize? prize, bool cancelled = false, List<int> winningPaylines = const []}) -
创建正常结果;未中奖时 index 和 prize 为空。
const
- SlotResult.cancelled()
-
创建作废结果;老虎机不向 onEnd 报告作废。
const
Properties
- cancelled → bool
-
是否作废本局。
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int?
-
命中的奖品下标,取消时为空。
finalinherited
-
indices
→ List<
int> -
各列的目标奖品下标。
final
- prize → SlotPrize?
-
命中的奖品,取消时为空。
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
winningPaylines
→ List<
int> -
中奖赔付线下标。
final
Methods
-
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 -
The equality operator.
inherited