childIndex property
int
get
childIndex
自身在父节点中的索引 如果为-1表示没有父节点
Implementation
int get childIndex {
if (parent == null) {
return -1;
}
return parent!._childrenList.indexOf(this as T);
}
自身在父节点中的索引 如果为-1表示没有父节点
int get childIndex {
if (parent == null) {
return -1;
}
return parent!._childrenList.indexOf(this as T);
}