# operator []= method

void operator []=(

1. int index,
2. int value

)

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);
    }