reverseCurve property
getter/setter pair
The curve to use in the reverse direction.
If the parent animation changes direction without first reaching the AnimationStatus.completed or AnimationStatus.dismissed status, the CurvedAnimation stays on the same curve (albeit in the opposite direction) to avoid visual discontinuities.
Because CurvedAnimation may add listeners to its parent, it must be
created once (for example in State.initState) and disposed in
State.dispose. Do not recreate it on every build as it would leak any
added listeners on every rebuild. If reverseCurve is not needed, prefer
parent.drive(CurveTween(curve: curve)) which does not require separate
disposal.
If this field is null, uses curve in both directions.
Implementation
Curve? reverseCurve;