readAt method

T? readAt(
  1. int index
)

Reads a value from index.

The bytes offset is calculated by index * bytesPerValue.

Implementation

T? readAt(int index) {
  checkClosed();
  var offset = index * bytesPerValue;
  return readFromByteData(_byteData, offset);
}