writeAt method

void writeAt(
  1. int index,
  2. T value
)

Writes a value at index.

The bytes offset is calculated by index * bytesPerValue.

Implementation

void writeAt(int index, T value) {
  checkClosed();
  var offset = index * bytesPerValue;
  writeToByteData(_byteData, offset, value);
}