CurvedAnimationController<T>.tweenSequence constructor
CurvedAnimationController<T>.tweenSequence (
- TweenSequence sequence,
- Duration? duration, {
- Curve curve = Curves.linear,
- Curve? reverseCurve = Curves.linear,
- String? debugLabel,
- AnimationBehavior animationBehavior = AnimationBehavior.normal,
- Duration? reverseDuration,
- 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,
));
}