siblingCount property
int
get
siblingCount
How many siblings this node sits among, itself included, excluding siblings that are animating out.
Deliberately live-space, matching indexInParent: the two are meant
to be read together (indexInParent == siblingCount - 1), and pairing
a live index with a count that includes exiting rows would report the
wrong last row for the length of every removal animation.
Implementation
int get siblingCount {
final parent = parentKey;
if (parent == null) {
return controller.liveRootCount;
}
return controller.liveChildCount(parent);
}