This operation is not supported by an unmodifiable list.
Source
void retainWhere(bool test(E element)) { throw new UnsupportedError("Cannot remove from an unmodifiable list"); }
This operation is not supported by an unmodifiable list.
void retainWhere(bool test(E element)) { throw new UnsupportedError("Cannot remove from an unmodifiable list"); }