prevsIter method

Iterable<UndoHeader<E>> prevsIter()

An iterable which walks the UndoHeader linked list backwards from this to the tail.

Implementation

Iterable<UndoHeader<E>> prevsIter() sync* {
  if (prev == null) {
    return;
  }
  for (UndoHeader<E>? prev = this.prev; prev != null; prev = prev.prev) {
    yield prev;
  }
}