Sprung.scroll constructor
Sprung.scroll({})
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);