operator []= method

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

This operation is not supported by an unmodifiable list.

Implementation

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