remove method Null safety

V? remove (
  1. Object? key
)
inherited

This operation is not supported by an unmodifiable map.

Implementation

V? remove(Object? key) {
  throw UnsupportedError("Cannot modify unmodifiable map");
}