isNodeInDOM function

bool isNodeInDOM(
  1. Node node
)

Returns true if node is in DOM tree.

Implementation

bool isNodeInDOM(Node node) {
  return document.body!.contains(node);
}