isInDocument<T extends TagXml> method

bool isInDocument<T extends TagXml>(
  1. T tag
)

Checks if this node is a descendant of the document thats tag is.

Implementation

bool isInDocument<T extends TagXml>(T tag) => tag.root.descendantElements.contains(this);