setContent method
Sets the content of this node.
Implementation
DOMNode setContent(Object? newContent) {
var nodes = DOMNode.parseNodes(newContent);
if (nodes.isNotEmpty) {
_content = nodes;
_setChildrenParent();
normalizeContent();
} else {
_content = null;
}
return this;
}