parent method
The parent node of this node, or null
if it is a root node.
Implementation
TreeNodeInfo? parent() {
return switch (this) {
LeafNodeInfo(parent: var p) => p,
InteriorNodeInfo(parent: var p) => p,
_ => null
};
}
The parent node of this node, or null
if it is a root node.
TreeNodeInfo? parent() {
return switch (this) {
LeafNodeInfo(parent: var p) => p,
InteriorNodeInfo(parent: var p) => p,
_ => null
};
}