liveChildCount method
Number of live (non-pending-deletion) children of parent.
Non-allocating variant of getLiveChildren(parent).length for hot
paths (drop-zone boundary checks ask this per candidate level).
Implementation
int liveChildCount(TKey parent) {
final full = _childListOf(parent);
if (full == null || full.isEmpty) {
return 0;
}
if (_anim.pendingDeletionCount == 0) {
return full.length;
}
var count = 0;
for (final k in full) {
if (!_isPendingDeletion(k)) {
count++;
}
}
return count;
}