Sprung.scroll constructor

Sprung.scroll({
  1. double damping = 1.0,
  2. double stiffness = 180,
  3. double mass = 1.0,
  4. double velocity = 0.0,
})

Implementation

Sprung.scroll(
    {double damping = 1.0,
    double stiffness = 180,
    double mass = 1.0,
    double velocity = 0.0})
    : _sim = ScrollSpringSimulation(
          SpringDescription.withDampingRatio(
            mass: mass,
            stiffness: stiffness,
            ratio: damping,
          ),
          0.0,
          1.0,
          velocity);