update method

  1. @override
void update()
override

Implementation

@override
void update() {
  x += speedX;
  if (x > screenSize.width) x = 0;
}