BouncyPressSpring constructor
Creates a spring.
Implementation
const BouncyPressSpring({
this.stiffness = 500,
this.dampingRatio = 0.5,
this.mass = 1,
}) : assert(stiffness > 0, 'stiffness must be positive.'),
assert(dampingRatio > 0, 'dampingRatio must be positive.'),
assert(mass > 0, 'mass must be positive.');