kebabCaseValues<K> method

Map<K, String> kebabCaseValues<K>()

Kebab case all values in the map. Returns a new map with kebab cased values.

Implementation

Map<K, String> kebabCaseValues<K>() {
  final map = <K, String>{};
  for (final key in keys) {
    map[key as K] = this[key].toString().toKebabCase();
  }
  return map;
}