void clear()

This operation is not supported by an unmodifiable list.

Source

void clear() {
  throw new UnsupportedError("Cannot clear an unmodifiable list");
}