moveRight method

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

Move player to Right

Implementation

void moveRight({double? speed}) {
  _lastSpeed = speed ?? this.speed;
  setVelocityAxis(x: _lastSpeed);
}