allAncestors property

Iterable<LogSpan> get allAncestors

Returns all ancestors from parent to root.

Does not include self. Empty if this is the root.

Implementation

Iterable<LogSpan> get allAncestors sync* {
  var current = _parent;
  while (current != null) {
    yield current;
    current = current._parent;
  }
}