suffixKeys<V> method

Map<String, V> suffixKeys<V>(
  1. String suffix
)

Add suffix to all keys in the map. Returns a new map with suffixed keys.

Implementation

Map<String, V> suffixKeys<V>(String suffix) {
  final map = <String, V>{};
  for (final key in keys) {
    map['$key$suffix'] = this[key] as V;
  }
  return map;
}