makeRubberBall method
void
makeRubberBall()
Make object bounce like a rubber ball
Implementation
void makeRubberBall() {
setupElasticCollision(
enabled: true,
bounciness: 0.9,
minBounceVelocity: 10.0,
);
}