isExiting method

bool isExiting(
  1. TKey key
)

Whether the given node is currently exiting (animating out).

Exiting nodes should not receive hit tests or user interactions.

Implementation

bool isExiting(TKey key) {
  // Check bulk group pending removal
  if (_bulkAnimationGroup?.pendingRemoval.contains(key) == true) return true;
  // Check operation group pending removal
  final groupKey = _operationGroupOf(key);
  if (groupKey != null) {
    final group = _operationGroups[groupKey];
    if (group != null && group.pendingRemoval.contains(key)) return true;
  }
  // Check standalone animations
  final animation = _standaloneAt(key);
  return animation != null && animation.type == AnimationType.exiting;
}