addExternalElementToElement method

  1. @override
List<Node>? addExternalElementToElement(
  1. Node element,
  2. Object? externalElement
)
override

Implementation

@override
List<Node>? addExternalElementToElement(
    Node element, Object? externalElement) {
  if (element is Element && externalElement is Node) {
    element.children.add(externalElement as Element);
    return [externalElement];
  }
  return null;
}