LottoController constructor

LottoController({
  1. LottoSampler sampler = const UniformLottoSampler(),
  2. Random? random,
})

创建控制器;不传随机源时使用独立 Random。

Implementation

LottoController({this.sampler = const UniformLottoSampler(), super.random})
    : super(motion: LottoMotion());