Lead: value at index i + offset; null if out of range.
i + offset
T? lead<T>(List<T> values, int index, int offset) { final int j = index + offset; return j >= 0 && j < values.length ? values[j] : null; }