innerText property

String innerText
inherited

Return the concatenated text of this node and all its descendants.

Implementation

String get innerText => XmlDescendantsIterable(this)
    .where((node) => node is XmlText || node is XmlCDATA)
    .map((node) => node.text)
    .join();
void innerText=(String value)
inherited

Replaces the children of this node with text contents.

Implementation

set innerText(String value) {
  children.clear();
  if (value != null && value.isNotEmpty) {
    children.add(XmlText(value));
  }
}