Returns the animation value with an easing curve applied.
Example:
animation.withCurve(Curves.easeInOut);
double withCurve(Curve curve) => curve.transform(value);