addChildToElement method
Implementation
@override
bool addChildToElement(Node? parent, Node? child) {
if (parent == null || child == null) return false;
if (parent.isA<Element>()) {
if (!_isChildOfElementImpl(parent as Element, child)) {
parent.append(child);
return true;
}
}
return false;
}