operator []= method

void operator []= (int index, E value)

This operation is not supported by an unmodifiable list.

Implementation

void operator []=(int index, E value) {
  throw new UnsupportedError("Cannot modify an unmodifiable list");
}