rebuildAllAncestorsExpanded method
Rebuilds _ancestorsExpandedByNid wholesale in a single pass starting
from roots. Used by bulk operations that bypass per-call propagation.
Implementation
void rebuildAllAncestorsExpanded(List<TKey> roots) {
_ancestorsExpandedByNid.fillRange(0, _ancestorsExpandedByNid.length, 0);
for (final rootKey in roots) {
final rootNid = nids[rootKey];
if (rootNid == null) continue;
_ancestorsExpandedByNid[rootNid] = 1;
final childAe = _expandedByNid[rootNid] != 0 ? 1 : 0;
_propagateAncestorsExpandedToDescendants(rootKey, childAe);
}
}