operator []= method Null safety

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