fling method

TickerFuture fling(
  1. double? from,
  2. double? to, {
  3. double velocity = 1.0,
  4. AnimationBehavior? animationBehavior,
})

Implementation

TickerFuture fling(double? from, double? to,
    {double velocity = 1.0, AnimationBehavior? animationBehavior}) {
  final double? target = velocity < 0.0 ? from : to;
  return launchTo(value, target,
      velocity: velocity, animationBehavior: animationBehavior);
}