addAll method

void addAll(
  1. covariant Iterable<Node> iterable
)
override

Add a collection of Iterable nodes to children

Implementation

void addAll(Iterable<Node> iterable) {
  for (final node in iterable) {
    if (children.containsKey(node.key)) throw DuplicateKeyException(node.key);
    node.parent = this;
    children[node.key] = node;
  }
}