nextAlt method

E? nextAlt()

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

Implementation

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