isIn<T extends TagXml> method

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

Checks if this node is a descendant of the given tag.

Implementation

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