SpringDescription constructor

const SpringDescription({
  1. required double mass,
  2. required double stiffness,
  3. required double damping,
})

Creates a spring given the mass, stiffness, and the damping coefficient.

See mass, stiffness, and damping for the units of the arguments.

Implementation

const SpringDescription({
  required this.mass,
  required this.stiffness,
  required this.damping,
});