addChildren method

void addChildren(
  1. Iterable<TreeNode<T>> newChildren
)

Adds a list of children to this node.

Implementation

void addChildren(Iterable<TreeNode<T>> newChildren) {
  newChildren.forEach(addChild);
}