moveUp method

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

Move player to Up

Implementation

void moveUp({double? speed}) {
  _lastSpeed = speed ?? this.speed;
  setVelocityAxis(y: -_lastSpeed);
}