moveRight method
Move player to Right
Implementation
void moveRight({double? speed}) {
_lastSpeed = speed ?? this.speed;
setVelocityAxis(x: _lastSpeed);
}
Move player to Right
void moveRight({double? speed}) {
_lastSpeed = speed ?? this.speed;
setVelocityAxis(x: _lastSpeed);
}