BkTree class
An approximate-match index over a set of strings.
Constructors
- BkTree([StringDistance? distance])
-
Creates an index using
distance(defaults to Damerau–Levenshtein). Audited: 2026-06-12 11:26 EDT
Properties
Methods
-
add(
String word) → void -
Inserts
word. A word already present (distance 0 to an existing node) is ignored, keeping the tree a set rather than a multiset. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
search(
String query, int maxDistance) → List< String> -
Returns every stored word within edit distance
maxDistanceofquery, in no particular order. RequiresmaxDistance >= 0. Audited: 2026-06-12 11:26 EDT -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited