at method

T? at(
  1. 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];
}