AnimationTimelineStep.animateBack constructor

AnimationTimelineStep.animateBack(
  1. AnimationController controller,
  2. double target, {
  3. String? label,
  4. double? forwardTarget,
  5. Duration? duration,
  6. Duration? reverseDuration,
  7. Curve curve,
  8. Curve? reverseCurve,
})

Animates controller backward to target.

If the timeline later alternates into reverse playback, forwardTarget is used with AnimationController.animateTo. When omitted, the controller's upper bound is used.

Implementation

factory AnimationTimelineStep.animateBack(
  AnimationController controller,
  double target, {
  String? label,
  double? forwardTarget,
  Duration? duration,
  Duration? reverseDuration,
  Curve curve,
  Curve? reverseCurve,
}) = _AnimateBackStep;