Returns an element following the index, if out of bounds returns null.
V? next<V>(List<V> list, int index) { index++; return index >= list.length ? null : list[index]; }