ancestorsExpandedFast method

bool ancestorsExpandedFast(
  1. TKey key
)

O(1) "are all ancestors of key expanded?" check. Returns true for roots and unregistered keys.

Implementation

bool ancestorsExpandedFast(TKey key) {
  final nid = nids[key];
  if (nid == null) return true;
  return _ancestorsExpandedByNid[nid] != 0;
}