deleteFromTree method
Implementation
NodeV3 deleteFromTree() {
if (parent == null) {
throw Exception("Cannot delete tree root!");
}
parent!.children.remove(this);
return this;
}
NodeV3 deleteFromTree() {
if (parent == null) {
throw Exception("Cannot delete tree root!");
}
parent!.children.remove(this);
return this;
}