setup method

void setup({
  1. double? bounciness,
  2. double? minBounceVelocity,
})

Implementation

void setup({
  double? bounciness,
  double? minBounceVelocity,
}) {
  _minBounceVelocity = minBounceVelocity ?? _minBounceVelocity;
  _restitution = bounciness ?? _restitution;
}