curve method

Animation<double> curve(
  1. Curve curve
)

Returns an Animation after applying CurveTween that can just pass as first argument.

Example:

controller.interval(0.0, 0.5).curve(Curves.easeInOut)

Implementation

Animation<double> curve(Curve curve) {
  return drive(CurveTween(curve: curve));
}