TimelyParabolicSimulation.constant constructor

TimelyParabolicSimulation.constant(
  1. double value, {
  2. required double duration,
})

At value with zero velocity; call target to animate. For the SimulationFactory shape (current, target, velocity) use the unnamed constructor instead.

Implementation

TimelyParabolicSimulation.constant(double value, {required this.duration})
  : startValue = value,
    endValue = value,
    startVelocity = 0.0,
    super();