moveLeft method

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

Move player to Left

Implementation

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