remove method Null safety
- Object? key
key and its associated value, if present, from the map.
Returns the value associated with
key before it was removed.
key was not in the map.
Note that some maps allow
null as a value,
so a returned
null value doesn't always mean that the key was absent.
@override MethodRouter? remove(Object? key) => _map.remove(key);