ancestors method

Iterable<int> ancestors(
  1. int entryId
)

Implementation

Iterable<int> ancestors(int entryId) sync* {
  var currEntryId = entryId;

  while (isIdValid(currEntryId)) {
    yield currEntryId;
    currEntryId = entryMap[currEntryId]!.parentId;
  }
}