getByKeyList method

VoltronMap getByKeyList(
  1. List<String> keyList
)

根据keyList获取含有指定key集合的VoltronMap

Implementation

VoltronMap getByKeyList(List<String> keyList) {
  final map = VoltronMap();
  for (final key in _data.keys) {
    if (keyList.contains(key)) {
      map.push(key, _data[key]);
    }
  }

  return map;
}