This operation is not supported by an unmodifiable list.
Source
void insert(int index, E element) {
throw new UnsupportedError(
"Cannot add to an unmodifiable list");
}
This operation is not supported by an unmodifiable list.
void insert(int index, E element) {
throw new UnsupportedError(
"Cannot add to an unmodifiable list");
}