CurvedAnimation constructor

CurvedAnimation(
  1. {required Animation<double> parent,
  2. required Curve curve,
  3. Curve? reverseCurve}
)

Creates a curved animation.

Implementation

CurvedAnimation({
  required this.parent,
  required this.curve,
  this.reverseCurve,
}) {
  _updateCurveDirection(parent.status);
  parent.addStatusListener(_updateCurveDirection);
}