bool isLightDescendant(Element node)

Checks whether an element is in this element's light DOM tree.

Source

bool isLightDescendant(Element node) =>
    jsElement.callMethod('isLightDescendant', [node]);