head method

UndoHeader<E> head()

The head of the current UndoHeader linked list.

Implementation

UndoHeader<E> head() {
  late UndoHeader<E> head;
  for (UndoHeader<E>? next = this; next != null; next = next.next) {
    head = next;
  }
  return head;
}