hasOnlyElementNodes property
bool
get
hasOnlyElementNodes
Returns true
if this node content is empty (no children nodes).
Returns ![isEmpty].
Returns true
if this node only have DOMElement nodes.
Implementation
//bool get isEmpty => isContentEmpty;
/// Returns ![isEmpty].
//bool get isNotEmpty => !isEmpty;
/// Returns [true] if this node only have [DOMElement] nodes.
bool get hasOnlyElementNodes {
if (isEmptyContent) return false;
return _content!.any((n) => n is! DOMElement) == false;
}