isIn<T extends TagXml> method
- 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);
Checks if this node is a descendant of the given tag
.
bool isIn<T extends TagXml>(T tag) => tag.descendantElements.contains(this);