void clear()

Removes all pairs from the map.

After this, the map is empty.

Source

void clear() {
  throw new UnsupportedError("Cannot modify unmodifiable map");
}