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 {
return _content?.every((n) => n is DOMElement) ?? false;
}