lastParent property
TreeViewItem
lastParent
Gets the last parent in the tree, in decrescent order.
If this is the root parent, this is returned
Implementation
TreeViewItem get lastParent {
if (parent != null) {
var currentParent = parent!;
while (currentParent.parent != null) {
if (currentParent.parent != null) currentParent = currentParent.parent!;
}
return currentParent;
}
return this;
}