LottoDraw class final

按池分组、组内保留抽出顺序的号码;例如 const LottoDraw([[1], [2]])。

Annotations

Constructors

LottoDraw(List<List<int>> numbers)
创建开奖号码;调用方须保持嵌套列表不可变。
const

Properties

hashCode → int
与嵌套列表相等性一致的哈希。
no setteroverride
numbers → List<List<int>>
各池抽出的号码。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({List<List<int>>? numbers}) → LottoDraw
返回指定号码的副本,未传参数时保留当前号码。
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
validate(LottoConfig config) → void
校验与 config 的池数、数量、范围和池内唯一性;不符抛 ArgumentError。

Operators

operator ==(Object other) → bool
按池顺序和抽出顺序比较。
override