liveRootCount property
int
get
liveRootCount
Number of live (non-pending-deletion) roots. Non-allocating variant
of liveRootKeys.length for hot paths (drop-zone boundary checks).
Implementation
int get liveRootCount {
if (_anim.pendingDeletionCount == 0) {
return _roots.length;
}
var count = 0;
for (final k in _roots) {
if (!_isPendingDeletion(k)) {
count++;
}
}
return count;
}