Last updated:
0 purchases
fuzzy
Fuzzy
Fuzzy search in Dart.
This project is basically a code conversion, subset of Fuse.js.
Installation #
add the following to your pubspec.yaml file:
dependencies:
fuzzy: <1.0.0
copied to clipboard
then run:
pub get
copied to clipboard
or with flutter:
flutter packages get
copied to clipboard
Usage #
import 'package:fuzzy/fuzzy.dart';
void main() {
final fuse = Fuzzy(['apple', 'banana', 'orange']);
final result = fuse.search('ran');
result.map((r) => r.output.first.value).forEach(print);
}
copied to clipboard
Don't forget to take a look at FuzzyOptions!
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.