addChildToElement method

  1. @override
bool addChildToElement(
  1. Node? parent,
  2. Node? child
)
override

Implementation

@override
bool addChildToElement(Node? parent, Node? child) {
  if (parent is Element && !parent.nodes.contains(child)) {
    parent.append(child!);
    return true;
  }
  return false;
}