build method

Node build({
  1. bool selfClosing = false,
})

Builds the node.

Implementation

Node build({bool selfClosing = false}) =>
    _existing ??
    (selfClosing
        ? SelfClosingNode(tagName, attributes)
        : Node(tagName, attributes, children));