removeContainKey method

void removeContainKey(
  1. String containKey
)

移除包含containKey的缓存 containKey包含缓存key

Implementation

void removeContainKey(String containKey) {
  Set<String> keys = new HashSet<String>();
  _map.keys.forEach((String key) {
    if (key.contains(containKey)) {
      keys.add(key);
    }
  });
  keys.forEach((String removeKey) {
    _map.remove(removeKey);
  });
}