retainWhere method Null safety

void retainWhere (
  1. bool test(
    1. int element
    )
)
inherited

This operation is not supported by an unmodifiable list.

Implementation

void retainWhere(bool test(E element)) {
  throw new UnsupportedError("Cannot remove from an unmodifiable list");
}