clear method

void clear()
override

Clear all the child nodes from children. The children will be empty after this operation.

Implementation

void clear() {
  children.clear();
}