stop method
抽样开奖;仅加速或匀速阶段接受,抽样为 null 时作废。
Implementation
bool stop() {
if (!phase.value.canStop) {
return false;
}
final draw = sampler.sample(_lotto.config!, random);
return draw == null ? cancel() : stopWith(draw);
}
抽样开奖;仅加速或匀速阶段接受,抽样为 null 时作废。
bool stop() {
if (!phase.value.canStop) {
return false;
}
final draw = sampler.sample(_lotto.config!, random);
return draw == null ? cancel() : stopWith(draw);
}