animating method

Animation<T> animating({
  1. Curve curve = Curves.linear,
  2. required Animation<double> controller,
  3. required VoidCallback listener,
  4. required AnimationStatusListener statusListener,
})

Implementation

Animation<T> animating({
  Curve curve = Curves.linear,
  required Animation<double> controller,
  required VoidCallback listener,
  required AnimationStatusListener statusListener,
}) =>
    animate(CurvedAnimation(curve: curve, parent: controller))
      ..addListener(listener)
      ..addStatusListener(statusListener);