We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c50958a commit 34d9241Copy full SHA for 34d9241
sdk/lib/collection/hash_map.dart
@@ -38,6 +38,10 @@ typedef _Hasher<K> = int Function(K object);
38
/// called during a [forEach] or [putIfAbsent] call,
39
/// or while iterating the map ([keys], [values] or [entries]).
40
///
41
+/// Do not modify keys in any way which changes their equality (and thus their
42
+/// hash code) while they are in the map. If a map key's [Object.hashCode]
43
+/// changes, it may cause future lookups for that key to fail.
44
+///
45
/// Example:
46
/// ```dart
47
/// final Map<int, String> planets = HashMap(); // Is a HashMap
0 commit comments