capitalizeKeys<V> method
Capitalize all keys in the map. Returns a new map with capitalized keys.
Implementation
Map<String, V> capitalizeKeys<V>() {
final map = <String, V>{};
for (final key in keys) {
map[key.toString().capitalize()] = this[key] as V;
}
return map;
}