closeMatches method

Iterable<String> closeMatches(
  1. String target, {
  2. int count = 3,
  3. double cutoff = 0.6,
})

Returns a list of the best "good enough" matches of a list of strings.

count specifies the number of matches to return. cutoff specifies the required similarity of candidates.

Implementation

Iterable<String> closeMatches(String target,
        {int count = 3, double cutoff = 0.6}) =>
    map((each) => each.runes)
        .closeMatches(target.runes, count: count, cutoff: cutoff)
        .map(String.fromCharCodes);