buildDOMAsyncElement method

T? buildDOMAsyncElement(
  1. DOMElement? domParent,
  2. T? parent,
  3. DOMAsync domElement,
  4. DOMTreeMap<T> treeMap,
  5. DOMContext<T>? context,
)

Implementation

T? buildDOMAsyncElement(DOMElement? domParent, T? parent, DOMAsync domElement,
    DOMTreeMap<T> treeMap, DOMContext<T>? context) {
  if (domParent != null) {
    domElement.parent = domParent;
  }

  var parsedElement = _parseExternalElement(
      domParent, parent, domElement, domElement, treeMap, context);

  if (parent != null && !containsNode(parent, parsedElement)) {
    addChildToElement(parent, parsedElement);
  }

  domElement.notifyElementGenerated(parsedElement);

  return parsedElement;
}