v0.5.1
fuzzy
Dart 中的模糊搜尋。最初是程式碼轉換,Fuse.js 的子集。
108喜歡 4.1萬近 30 天下載150Pub 分數
AndroidiOSWebmacOSWindowsLinux
Dart 中的模糊搜尋
以下為英文專案原文快照,最新內容請造訪 GitHub。
Fuzzy search in Dart.
This project is basically a code conversion, subset of Fuse.js.
add the following to your pubspec.yaml file:
dependencies:
fuzzy: <1.0.0
then run:
pub get
or with flutter:
flutter packages get
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);
}
Don't forget to take a look at FuzzyOptions!