index property
int
get
index
Implementation
int get index {
if (_index != min) {
return _index;
}
if (parent == null) {
_index = -1;
} else if (!parent!.treeNode.expanded) {
_index = -1;
} else {
var indexOf = parent!.childControllers.indexOf(this);
if (indexOf != 0) {
var controller = parent!.childControllers[indexOf - 1];
_index = controller.lastVisibleDescendatIndex + 1;
} else {
_index = parent!.index + 1;
}
}
return _index;
}