BouncyPressSpring constructor

const BouncyPressSpring({
  1. double stiffness = 500,
  2. double dampingRatio = 0.5,
  3. double mass = 1,
})

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.');