textContent property

String textContent

Implementation

String get textContent {
  String str = '';
  // Set data of all text node children as value of textarea.
  for (Node child in childNodes) {
    if (child is TextNode) {
      str += child.data;
    }
  }
  return str;
}