animateBack method

TickerFuture animateBack(
  1. double target, {
  2. Duration? duration,
  3. Curve curve = Curves.linear,
})

Drives the animation from its current value to the given target, "backward".

  • target: The target value to animate towards in reverse.
  • duration: The duration over which to animate. If null, calculates duration proportionally.
  • curve: The curve to apply during animation. Defaults to Curves.linear.

Requires:

  • Controller must be activated by a Coral resource topology before driving motion.

Returns: A TickerFuture that completes when the animation reaches target.

Throws:

Example:

controller.animateBack(0.2);

Implementation

TickerFuture animateBack(double target,
        {Duration? duration, Curve curve = Curves.linear}) =>
    _delegate.animateBack(target, duration: duration, curve: curve);