mirror of
https://github.com/dart-lang/sdk
synced 2024-10-03 01:25:41 +00:00
Update docs for Map values, keys (#27972)
Closes https://github.com/dart-lang/sdk/issues/27968
This commit is contained in:
parent
06bc6e5d33
commit
2e9064ae13
|
@ -237,6 +237,9 @@ abstract class Map<K, V> {
|
|||
*
|
||||
* The order of iteration is defined by the individual `Map` implementation,
|
||||
* but must be consistent between changes to the map.
|
||||
*
|
||||
* Modifying the map while iterating the keys
|
||||
* may break the iteration.
|
||||
*/
|
||||
Iterable<K> get keys;
|
||||
|
||||
|
@ -250,6 +253,9 @@ abstract class Map<K, V> {
|
|||
* The returned iterable has an efficient `length` method based on the
|
||||
* [length] of the map. Its [Iterable.contains] method is based on
|
||||
* `==` comparison.
|
||||
*
|
||||
* Modifying the map while iterating the
|
||||
* values may break the iteration.
|
||||
*/
|
||||
Iterable<V> get values;
|
||||
|
||||
|
|
Loading…
Reference in a new issue