hasActiveAnimations property

bool get hasActiveAnimations

Whether any nodes are currently animating.

Used by the element and render object to defer expensive operations (like stale-node eviction and sticky precomputation) during animation.

Slide animations are deliberately excluded. Slide is paint-only — it does not change layout, sticky geometry, or eviction decisions. Callers that care about slide state read hasActiveSlides instead.

Implementation

bool get hasActiveAnimations =>
    _hasAnyStandalone ||
    _operationGroups.isNotEmpty ||
    (_bulkAnimationGroup != null && !_bulkAnimationGroup!.isEmpty);