prevAlt method

E? prevAlt()

Changes current to be prevAlt if possible, returning the new current if so, and null otherwise.

Implementation

E? prevAlt() {
  if (!canPrevAlt()) {
    return null;
  }
  _current = current!.prevAlt;
  _head = current!.head();
  return current!.entry;
}