revertMap static method

Map revertMap(
  1. Map map
)

Implementation

static Map revertMap(Map map) {
  final Map<String, String> newMap = {};
  for (String tempKey in map.keys) {
    newMap[map[tempKey]] = tempKey;
  }
  return newMap;
}