curve method
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));
}