forEachKeyPrefixedBy abstract method

void forEachKeyPrefixedBy(
  1. String prefix,
  2. void f(
    1. String key,
    2. Iterable<V> values
    ), {
  3. int maxPrefixEditDistance = 0,
})

Applies f to each key/value pair of the TTMultiMap where key is prefixed by prefix.

Calling f must not add or remove keys from the TTMultiMap

See keysByPrefix for more information on result ordering, near neighbour search (maxPrefixEditDistance) etc.

Throws ArgumentError if prefix is empty or null.

Implementation

void forEachKeyPrefixedBy(
    String prefix, void Function(String key, Iterable<V> values) f,
    {int maxPrefixEditDistance = 0});