Fuzzy<T extends Object> class
Fuzzy search in Dart.
Import this library as follows:
import 'package:fuzzy/fuzzy.dart';
Constructors
-
Fuzzy(List<
String> source, {List<List< ? tokens, FuzzyOptions? options})String> > - Instantiates it given a list of strings to look into, and options
-
Fuzzy.withIdentifiers(Map<
String, T> source, {List<List< ? tokens, FuzzyOptions? options})String> > - Creates a new Fuzzy index with identifiers.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- options → FuzzyOptions
-
Fuzz search Options
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
source
→ List<
String> -
The original list of string
final
-
tokens
→ List<
List< ?String> > -
An optional list of predefined tokens for each element in source.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
search(
String pattern, [int limit = -1]) → Future< List< Result< >T> > -
Search for a given
pattern
on thelist
, optionallylimit
ing the result length -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited