innerText property
String
innerText
Return the concatenated text of this node and all its descendants.
Implementation
String get innerText => XmlDescendantsIterable(this as XmlNode)
.where((node) => node is XmlText || node is XmlCDATA)
.map((node) => node.text)
.join();
Replaces the children of this node with text contents.
Implementation
set innerText(String value) {
children.clear();
if (value.isNotEmpty) {
children.add(XmlText(value));
}
}