ExponentialDecay.perFrame constructor

ExponentialDecay.perFrame(
  1. double multiplier, {
  2. double fps = 60,
  3. double endVelocity = 60,
})

Per-frame velocity multiplier (iOS / JS conventions). 60fps default.

Implementation

factory ExponentialDecay.perFrame(double multiplier,
        {double fps = 60, double endVelocity = 60}) =>
    ExponentialDecay(
      1 - math.pow(multiplier, fps).toDouble(),
      endVelocity: endVelocity,
    );