mapValues<R> method
将 Map 的值转换为另一种类型
Implementation
Map<K, R> mapValues<R>(R Function(V value) transform) {
if (isNullOrEmpty()) {
return {};
}
final Map<K, R> result = {};
this!.forEach((K key, V value) {
result[key] = transform(value);
});
return result;
}