Update docs for Map values, keys (#27972)

Closes https://github.com/dart-lang/sdk/issues/27968
This commit is contained in:
Seth Ladd 2016-12-02 10:01:23 -08:00 committed by GitHub
parent 06bc6e5d33
commit 2e9064ae13

View file

@ -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;