moveUpOnce method

void moveUpOnce({
  1. double? speed,
})

Implementation

void moveUpOnce({double? speed}) {
  _lastSpeed = speed ?? this.speed;
  setVelocityAxis(y: -_lastSpeed);
  onApplyDisplacement(dtUpdate);
  setVelocityAxis(y: 0);
}