AnimationTimelineStep.animateTo constructor

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

Animates controller to target.

If the timeline later alternates into reverse playback, reverseTarget is used with AnimationController.animateBack. When omitted, the controller's lower bound is used.

Implementation

factory AnimationTimelineStep.animateTo(
  AnimationController controller,
  double target, {
  String? label,
  double? reverseTarget,
  Duration? duration,
  Duration? reverseDuration,
  Curve curve,
  Curve? reverseCurve,
}) = _AnimateToStep;