getLevenshtein method
Returns a list of Levenshtein distances between each element in the list and the given string b
.
The optional parameter caseSensitive
determines whether the comparison should be case-sensitive or not.
If caseSensitive
is not provided, it defaults to true.
Implementation
List<int> getLevenshtein(String b, [bool caseSensitive = true]) => map((x) => x.getLevenshtein(b, caseSensitive)).toList();