SearchEngine class
Fast and lightweight search engine with fuzzy search capabilities
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fuzzySearch(
List< SearchableItem> items, String query, {SearchConfig config = const SearchConfig()}) → List<SearchableItem> - Search items with fuzzy matching for typos and misspellings
-
getItemById(
List< SearchableItem> items, String id) → SearchableItem? - Get an item by its ID
-
getSortedItems(
List< SearchableItem> items) → List<SearchableItem> - Get a sorted list of items by name
-
search(
List< SearchableItem> items, String query, {SearchConfig config = const SearchConfig()}) → List<SearchableItem> - Search items with basic matching