isAnimationActive method
Check if the animation is currently running / active.
Implementation
bool isAnimationActive(Animation animation) {
AnimationStatus status = animation.status;
return status == AnimationStatus.forward ||
status == AnimationStatus.reverse;
}