This operation is not supported by an unmodifiable list.
Source
/** This operation is not supported by an unmodifiable list. */
void clear() {
throw new UnsupportedError(
"Cannot clear an unmodifiable list");
}
This operation is not supported by an unmodifiable list.
/** This operation is not supported by an unmodifiable list. */
void clear() {
throw new UnsupportedError(
"Cannot clear an unmodifiable list");
}