suffixValues<K> method

Map<K, String> suffixValues<K>(
  1. String suffix
)

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;
}