elementAtOrNull method
Returns the element at index, or null if out of bounds
Implementation
T? elementAtOrNull(int index) {
if (index < 0 || index >= length) return null;
return this[index];
}
Returns the element at index, or null if out of bounds
T? elementAtOrNull(int index) {
if (index < 0 || index >= length) return null;
return this[index];
}