Creates a new tween with a curve applied.
Example:
final curved = tween.withCurve(Curves.easeInOut);
Tween<T> withCurve(Curve curve) { return _CurvedTween<T>(this, curve); }