remove method
- dynamickey
override
Removeskey and its associated value, if present, from the map.
Returns the value associated withkey before it was removed.Returnsnull ifkey was not in the map.
Note that some maps allownull as a value,so a returnednull value doesn't always mean that the key was absent.
final terrestrial = <int, String>{1: 'Mercury', 2: 'Venus', 3: 'Earth'};final removedValue = terrestrial.remove(2); // Venusprint(terrestrial); // {1: Mercury, 3: Earth}Implementation
String remove(dynamic key) { throw new UnsupportedError("Not supported");}