CurvedAnimationController<T> constructor

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

Implementation

CurvedAnimationController({
  this.begin,
  this.end,
  required this.curve,
  this.duration,
  this.reverseCurve,
  this.reverseDuration,
  this.debugLabel,
  this.animationBehavior = AnimationBehavior.normal,
  required this.vsync,
}) {
  _tween = Tween(begin: begin ?? 0.0, end: end ?? 1.0);

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

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