deleteAllChild method

void deleteAllChild()

Implementation

void deleteAllChild() {
  if (_children.isNotEmpty) {
    for (var childNode in _children) {
      childNode.deleteAllChild();
      _root.unregisterNode(childNode);
    }
    _children.clear();
  }
}