hasOnlyTextNodes property

bool get hasOnlyTextNodes

Returns true if this node only have TextNode nodes.

Implementation

bool get hasOnlyTextNodes {
  return _content?.every((n) => n is TextNode) ?? false;
}