void length=(int newLength)

This operation is not supported by an unmodifiable list.

Source

set length(int newLength) {
  throw new UnsupportedError(
      "Cannot change the length of an unmodifiable list");
}