bouncingBall static method

Widget bouncingBall({
  1. required Color color,
  2. required double size,
  3. Key? key,
})

A ball fall from top and bounce back Required color is applied to the ball.

Implementation

static Widget bouncingBall({
  required Color color,
  required double size,
  Key? key,
}) {
  return BouncingBall(
    color: color,
    size: size,
    key: key,
  );
}