curved method

Animatable<T> curved(
  1. Curve curve
)

Applies non-linear animation behavior like acceleration by providing a transformation curve. You can find many predefined curves in Curves.

Example:

0.0.tweenTo(100.0).curved(Curves.easeInOut);

Implementation

Animatable<T> curved(Curve curve) {
  return chain(CurveTween(curve: curve));
}