在 Dart 中可以使用 map.remove(key) 方法来删除 map 中指定 key 的项。 例如:
var map = {'a': 1, 'b': 2, 'c': 3};
map.remove('b');
print(map); // {'a': 1, 'c': 3}
在 Dart 中可以使用 map.remove(key) 方法来删除 map 中指定 key 的项。 例如:
var map = {'a': 1, 'b': 2, 'c': 3};
map.remove('b');
print(map); // {'a': 1, 'c': 3}