stop method
停止本局;空下标使用 picker,负值作废,超界正值按奖品数取余。
仅加速与匀速接受;例如 controller.stop(1)。
Implementation
bool stop([int? index]) {
final capsuleMotion = typedMotion;
if (!capsuleMotion.acceptsStop) return false;
final config = capsuleMotion.config;
final target = index ??
pickIndex(picker, random, config.prizes,
weight: (p) => p.weight, disabled: (p) => p.disabled);
return commitCommand(capsuleMotion.requestStop(target));
}