ScrollSpringSimulation constructor

ScrollSpringSimulation(
  1. SpringDescription spring,
  2. double start,
  3. double end,
  4. double velocity, {
  5. Tolerance tolerance = Tolerance.defaultTolerance,
})

Creates a spring simulation from the provided spring description, start distance, end distance, and initial velocity.

See the SpringSimulation.new constructor on the superclass for a discussion of the arguments' units.

Implementation

ScrollSpringSimulation(
  super.spring,
  super.start,
  super.end,
  super.velocity, {
  super.tolerance,
});