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