nodeType property
Implementation
NodeType get nodeType {
return switch (this) {
_ when _parent == null => NodeType.root,
_ when _children.isEmpty => NodeType.leaf,
_ => NodeType.interior
};
}
NodeType get nodeType {
return switch (this) {
_ when _parent == null => NodeType.root,
_ when _children.isEmpty => NodeType.leaf,
_ => NodeType.interior
};
}