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