mapValues method

Map<K, V> mapValues(
  1. V transform(
    1. V value
    )
)

Implementation

Map<K, V> mapValues(V Function(V value) transform) {
  if (this == null) return {};
  final map = <K, V>{};
  this!.forEach((key, value) {
    map[key] = transform(value);
  });
  return map;
}