removeRange method Null safety

void removeRange(
  1. int start,
  2. int end
)
inherited

This operation is not supported by an unmodifiable list.

Implementation

void removeRange(int start, int end) {
  throw new UnsupportedError("Cannot remove from an unmodifiable list");
}