buildHTML method

  1. @override
String buildHTML({
  1. bool withIndent = false,
  2. String parentIndent = '',
  3. String indent = ' ',
  4. bool disableIndent = false,
  5. bool xhtml = false,
  6. bool resolveDSX = false,
  7. bool buildTemplates = false,
  8. DOMNode? parentNode,
  9. DOMNode? previousNode,
  10. DOMContext? domContext,
})
override

Generates a HTML from this node tree.

withIndent If true will generate a indented HTML.

Implementation

@override
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}) {
  var nbsp = xhtml ? ' ' : ' ';
  return text.replaceAll('\xa0', nbsp);
}