ScrollSpringSimulation constructor Null safety
- SpringDescription spring,
- double start,
- double end,
- double velocity,
- {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(
SpringDescription spring,
double start,
double end,
double velocity, {
Tolerance tolerance = Tolerance.defaultTolerance,
}) : super(spring, start, end, velocity, tolerance: tolerance);