carriedMomentum method

  1. @override
double carriedMomentum (double existingVelocity)
override

Momentum build-up function that mimics iOS's scroll speed increase with repeated flings.

The velocity of the last fling is not an important factor. Existing speed and (related) time since last fling are factors for the velocity transfer calculations.

Implementation

@override
double carriedMomentum(double existingVelocity) {
  return existingVelocity.sign *
      math.min(0.000816 * math.pow(existingVelocity.abs(), 1.967).toDouble(), 40000.0);
}