LottoPool constructor

const LottoPool({
  1. required int min,
  2. required int max,
  3. required int count,
  4. required LuckyFill ballFill,
  5. Color textColor = _white,
  6. String? label,
})

创建号码范围和抽取数量;必须满足 min ≤ max 且 0 < count ≤ 范围长度。

Implementation

const LottoPool(
    {required this.min,
    required this.max,
    required this.count,
    required this.ballFill,
    this.textColor = _white,
    this.label})
    : assert(min <= max),
      assert(count > 0),
      assert(count <= max - min + 1);