clear method Null safety

void clear ()
inherited

This operation is not supported by an unmodifiable map.

Implementation

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