removeKeys method
移除map中对应key的数据
keys
map keys
Implementation
void removeKeys(List<M> keys) {
if (this.isEmptyMap() || keys.isEmptyList) {
return;
}
keys.forEach((key) {
//remove key or value
this?.remove(key);
});
}
移除map中对应key的数据
keys
map keys
void removeKeys(List<M> keys) {
if (this.isEmptyMap() || keys.isEmptyList) {
return;
}
keys.forEach((key) {
//remove key or value
this?.remove(key);
});
}