TimelyParabolicSimulation constructor

TimelyParabolicSimulation(
  1. double current,
  2. double target,
  3. double velocity, {
  4. double duration = kTimelyParabolicDefaultDurationSeconds,
})

From current toward target with initial velocity, in seconds for duration and for x / dx / isDone time — same shape as SpringSimulation and SimulationFactory.

Implementation

TimelyParabolicSimulation(
  double current,
  double target,
  double velocity, {
  this.duration = kTimelyParabolicDefaultDurationSeconds,
}) : startValue = current,
     endValue = target,
     startVelocity = velocity,
     super();