stop method
全部列停到奖品 index;null 选奖一次复用到各列,任意负数作废。
Implementation
bool stop([int? index]) {
if (!phase.value.canStop) {
return false;
}
final config = _slot.config;
final picked = index ??
pickIndex(picker, random, config.prizes,
weight: (p) => p.weight, disabled: (p) => p.disabled);
return commitCommand(_slot.requestStop(
picked == null ? null : List<int>.filled(config.reels.length, picked)));
}