CurvedAnimation constructor

CurvedAnimation({@required Animation<double> parent, @required Curve curve, Curve reverseCurve })

Creates a curved animation.

The parent and curve arguments must not be null.

Implementation

CurvedAnimation({
  @required this.parent,
  @required this.curve,
  this.reverseCurve
}) : assert(parent != null),
     assert(curve != null) {
  _updateCurveDirection(parent.status);
  parent.addStatusListener(_updateCurveDirection);
}