redo method

E? redo()

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

Implementation

E? redo() {
  if (!canRedo()) {
    return null;
  }
  _current = current!.next;
  return current!.entry;
}