fromIterator method

TreeIterator<SortedMapEntry<K, V>> fromIterator(
  1. K anchor, {
  2. bool reversed = false,
  3. bool inclusive = true,
})

Returns a TreeIterator for the map entries, starting at the anchor key.

By default, the returned iterator includes anchor on the first movement; if inclusive is set to false, anchor is excluded. The behavior of TreeIterator.moveNext and TreeIterator.movePrevious is reversed when reversed is set to true.

Implementation

TreeIterator<SortedMapEntry<K, V>> fromIterator(
  K anchor, {
  bool reversed = false,
  bool inclusive = true,
}) => _treeSet.fromIterator(
  SortedMapEntry<K, V>._key(anchor),
  reversed: reversed,
  inclusive: inclusive,
);