Spring1D constructor

Spring1D({
  1. required double initialValue,
  2. double stiffness = 180.0,
  3. double damping = 12.0,
})

Implementation

Spring1D({
  required double initialValue,
  this.stiffness = 180.0,
  this.damping = 12.0,
})  : value = initialValue,
      velocity = 0.0;