getChildNodes function

void getChildNodes(
  1. ContainerNode node,
  2. List<Node> nodes
)

Implementation

void getChildNodes(ContainerNode node, List<Node> nodes) {
  assert(nodes.isEmpty);
  for (Node? child = node.firstChild; child != null; child = child.nextSibling) {
    nodes.add(child);
  }
}