isAnimationActive method

bool isAnimationActive(
  1. Animation animation
)

Check if the animation is currently running / active.

Implementation

bool isAnimationActive(Animation animation) {
  AnimationStatus status = animation.status;
  return status == AnimationStatus.forward ||
      status == AnimationStatus.reverse;
}