notifyNodeRemoved method

void notifyNodeRemoved(
  1. Node node
)

Implementation

void notifyNodeRemoved(Node node) {
  for (Node node in NodeTraversal.inclusiveDescendantsOf(node)) {
    // As an optimization we skip notifying Text nodes and other leaf nodes
    // of removal when they're not in the Document tree and not in a shadow root
    // since the virtual call to removedFrom is not needed.
    if (node is! ContainerNode && !node.isInTreeScope()) {
      continue;
    }
    node.removedFrom(this);
  }
}