Index: lib/src/utils.dart |
diff --git a/lib/src/utils.dart b/lib/src/utils.dart |
index 6d54faf0b1d8c284e8ddc1d0643123b58a40e954..73e42cb38fd75dba89f25e0592c1b35962b00215 100644 |
--- a/lib/src/utils.dart |
+++ b/lib/src/utils.dart |
@@ -228,11 +228,11 @@ Map mapMap(Map map, {key(key, value), value(key, value)}) { |
/// not passed, [map2]'s value wins. |
Map mergeMaps(Map map1, Map map2, {value(value1, value2)}) { |
var result = new Map.from(map1); |
- map2.forEach((key, value) { |
+ map2.forEach((key, mapValue) { |
if (value == null || !result.containsKey(key)) { |
- result[key] = value; |
+ result[key] = mapValue; |
} else { |
- result[key] = value(result[key], value); |
+ result[key] = value(result[key], mapValue); |
} |
}); |
return result; |