text_search 0.0.2 copy "text_search: ^0.0.2" to clipboard
text_search: ^0.0.2 copied to clipboard

outdated

Simple in-memory fuzzy text searching library.

example/text_search_example.dart

import 'package:text_search/text_search.dart';

final searchableItems = [
  TextSearchItem('Coffee Shop', ['coffee', 'latte', 'macchiato', 'tea']),
  TextSearchItem('Dessert', ['ice cream', 'cake', 'pastry']),
  TextSearchItem('Milk Tea Shop', ['boba', 'milk tea', 'bubble tea']),
];
final placeTypeSearch = TextSearch(searchableItems);
void main() {
  print(placeTypeSearch.search('icecream'));
  // [TextSearchResult(Dessert, 0.20740740740740726)]
}
28
likes
0
points
59.8k
downloads

Publisher

verified publisherflutterflow.io

Weekly Downloads

Simple in-memory fuzzy text searching library.

License

unknown (license)

Dependencies

edit_distance, tuple

More

Packages that depend on text_search