hasOnlyTextNodes property

bool get hasOnlyTextNodes

Returns true if this node only have TextNode nodes.

Implementation

bool get hasOnlyTextNodes {
  if (isEmptyContent) return false;
  return _content!.any((n) => (n is DOMElement)) == false;
}