isAnimating method

bool isAnimating(
  1. TKey key
)

Whether the given node is currently animating. O(1) via the cached _ensureAnimatingKeys set (rebuilt lazily when animation membership changes).

Implementation

bool isAnimating(TKey key) {
  if (!hasActiveAnimations) return false;
  return _ensureAnimatingKeys().contains(key);
}