fling method

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

Drives the animation with a critically damped spring (within lowerBound and upperBound) and initial velocity.

If velocity is positive, the animation will complete, otherwise it will dismiss.

Returns a TickerFuture that completes when the animation is complete.

The most recently returned TickerFuture, if any, is marked as having been canceled, meaning the future never completes and its TickerFuture.orCancel derivative future completes with a TickerCanceled error.

Implementation

TickerFuture fling(
    {double velocity = 1.0, AnimationBehavior? animationBehavior}) {
  return _controller.fling(
      velocity: velocity, animationBehavior: animationBehavior);
}