withCurve method

double withCurve(
  1. Curve curve
)

Returns the animation value with an easing curve applied.

Example:

animation.withCurve(Curves.easeInOut);

Implementation

double withCurve(Curve curve) {
  return curve.transform(value);
}