prefixValues<K> method
Add prefix to all values in the map. Returns a new map with prefixed values.
Implementation
Map<K, String> prefixValues<K>(String prefix) {
final map = <K, String>{};
for (final key in keys) {
map[key as K] = '$prefix${this[key]}';
}
return map;
}