withCurve method

Tween<T> withCurve(
  1. Curve curve
)

Creates a new tween with a curve applied.

Example:

final curved = tween.withCurve(Curves.easeInOut);

Implementation

Tween<T> withCurve(Curve curve) {
  return _CurvedTween<T>(this, curve);
}