iterator property

Iterator<MapEntry<K, V>> iterator

Returns a new Iterator that allows iterating the entries of the IMap.

  1. If the map's config has ConfigMap.sort true (the default), it will iterate in the natural order of entries. In other words, if the keys/values are Comparable, they will be sorted first by keyA.compareTo(keyB) and then by valueA.compareTo(valueB).

  2. If the map's config has ConfigMap.sort false, or if the keys/values are not Comparable, the iterator order is by insertion order.

Implementation

Iterator<MapEntry<K, V>> get iterator => _m.iterator;