moveLeft method

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

Move player to Left

Implementation

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