reset method

void reset()

重置到原点;运动中(含待机慢转)按取消报告策略作废本局。

Implementation

void reset() {
  if (_disposed) return;
  final cancelled = motion.phase.isMoving;
  final fromIdle = motion.phase == LuckyPhase.idleSpinning;
  final pending = _pending;
  motion.reset();
  _timeline.resumeUser();
  _userPaused = false;
  _afterCommand(cancelled ? createCancelledResult() : null, pending,
      fromIdle: fromIdle);
}