operator []= method

void operator []=(
  1. int index,
  2. E 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");
}