ScrollSpringSimulation constructor Null safety

  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 constructor on the superclass for a discussion of the arguments' units.


  SpringDescription spring,
  double start,
  double end,
  double velocity, {
  Tolerance tolerance = Tolerance.defaultTolerance,
}) : super(spring, start, end, velocity, tolerance: tolerance);