stopMove method

void stopMove({
  1. bool forceIdle = false,
  2. bool isX = true,
  3. bool isY = true,
})

Implementation

void stopMove({bool forceIdle = false, bool isX = true, bool isY = true}) {
  if (isIdle && !forceIdle) return;
  setZeroVelocity(isX: isX, isY: isY);
  idle();
}