at method
- int index
Safely attempts to extract explicitly passing array structurally bounds safely without panicking.
Implementation
T? at(int index) {
if (index < 0 || index >= length) return null;
return _data[index];
}
Safely attempts to extract explicitly passing array structurally bounds safely without panicking.
T? at(int index) {
if (index < 0 || index >= length) return null;
return _data[index];
}