clear method

void clear ()
inherited

This operation is not supported by an unmodifiable list.

Implementation

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