add method

void add(
  1. covariant Node value
)
override

Add a value node to the children

Implementation

void add(Node value) {
  if (children.containsKey(value.key)) throw DuplicateKeyException(value.key);
  value.parent = this;
  children[value.key] = value;
}