CurvedAnimationController<T>.tweenSequence constructor

CurvedAnimationController<T>.tweenSequence(
  1. TweenSequence sequence,
  2. Duration? duration, {
  3. Curve curve = Curves.linear,
  4. Curve? reverseCurve = Curves.linear,
  5. String? debugLabel,
  6. AnimationBehavior animationBehavior = AnimationBehavior.normal,
  7. Duration? reverseDuration,
  8. required TickerProvider vsync,
})

Implementation

CurvedAnimationController.tweenSequence(
  TweenSequence sequence,
  this.duration, {
  this.curve = Curves.linear,
  this.reverseCurve = Curves.linear,
  this.debugLabel,
  this.animationBehavior = AnimationBehavior.normal,
  this.reverseDuration,
  required this.vsync,
}) {
  _tweenSequence = sequence;

  _controller = AnimationController(
    vsync: vsync,
    debugLabel: debugLabel,
    animationBehavior: animationBehavior,
    reverseDuration: reverseDuration,
    duration: duration,
  );

  _animation = _tweenSequence!.animate(CurvedAnimation(
    parent: _controller,
    curve: curve,
    reverseCurve: reverseCurve,
  ));
}