animation<V> method

Animation<V> animation<V>(
  1. V startValue,
  2. V endValue,
  3. Curve curve, {
  4. Curve? reverseCurve,
})

Implementation

Animation<V> animation<V>(V startValue, V endValue, Curve curve,
    {Curve? reverseCurve}) {
  final Animation<double> curveAnm =
      CurvedAnimation(parent: this, curve: curve, reverseCurve: reverseCurve);
  return Tween<V>(begin: startValue, end: endValue).animate(curveAnm);
}