operator []= method
Sets the byte at the specified index.
Example:
final bytes = Byte.fromList([10, 20, 30]);
bytes[1] = 25;
print(bytes.toList()); // [10, 25, 30]
Throws InvalidArgumentException if value is outside byte range. Throws RangeError if index is invalid.
Implementation
void operator []=(int index, int value) {
_bytes[index] = _validateByteRange(value);
}