moveRight method

  1. @override
void moveRight(
  1. double speed, {
  2. VoidCallback? onCollision,
})
override

Move player to Right

Implementation

@override
void moveRight(double speed, {VoidCallback? onCollision}) {
  animation?.play(SimpleAnimationEnum.runRight);
  super.moveRight(speed, onCollision: onCollision);
}