buildHTML method
Generates a HTML from this node tree.
withIndent
If true
will generate a indented HTML.
Implementation
String buildHTML(
{bool withIndent = false,
String parentIndent = '',
String indent = ' ',
bool disableIndent = false,
bool xhtml = false,
bool resolveDSX = false,
bool buildTemplates = false,
DOMNode? parentNode,
DOMNode? previousNode,
DOMContext? domContext}) {
if (isCommented) return '';
var html = '';
if (isNotEmptyObject(_content)) {
DOMNode? prev;
for (var node in _content!) {
var subHtml = node.buildHTML(
withIndent: withIndent,
parentIndent: parentIndent + indent,
indent: indent,
disableIndent: disableIndent,
xhtml: xhtml,
resolveDSX: resolveDSX,
buildTemplates: buildTemplates,
parentNode: parentNode,
previousNode: prev,
domContext: domContext);
html += subHtml;
prev = node;
}
}
return html;
}