LottoPool class final

号码池;调用方须保持配置列表不可变。

Annotations

Constructors

LottoPool({required int min, required int max, required int count, required LuckyFill ballFill, Color textColor = _white, String? label})
创建号码范围和抽取数量;必须满足 min ≤ max 且 0 < count ≤ 范围长度。
const

Properties

ballFill → LuckyFill
球体填充。
final
count → int
每局抽取数量。
final
hashCode → int
与相等性一致的哈希。
no setteroverride
label → String?
可选号码池标签。
final
max → int
最大号码(含)。
final
min → int
最小号码(含)。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textColor → Color
号码文字色。
final

Methods

copyWith({int? min, int? max, int? count, LuckyFill? ballFill, Color? textColor, String? label}) → LottoPool
返回替换非空参数的副本;例如 pool.copyWith(count: 1)。
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