autotrie
2.0.0, released 5 years ago by kishoredev.live
An auto-completion engine for Dart and Flutter using an optimized Trie implementation.
What it does
Provides an in-memory auto-completion engine based on a space-efficient Trie data structure. It supports frequency and recency-based sorting, basic file persistence, and Hive box extensions for searching keys and values.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need local, fast auto-completion suggestions for strings in Dart or Flutter
- You want suggestions ranked by frequency of entry and recency
- You want basic file persistence or Hive integration for autocomplete data
Skip it when
- You need advanced sorting options directly integrated with Hive box search
- You require complex remote search indexing rather than a local Trie
Strengths
- Space-efficient Trie implementation using variable-length lists
- Flexible sorting options including frequency and recency-based logistic curves
- Built-in file persistence and Hive integration extensions
Weaknesses
- Hive integration does not support advanced custom sorting options (only entry-level sorting)
- Limited to string-based auto-completion
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:autotrie/autotrie.dart';
void main() {
var engine = AutoComplete(engine: SortEngine.entriesOnly());
engine.enter('more');
print(engine.suggest('mo'));
}Works with
Packages commonly used together with autotrie: ones it builds on, ones built on it, and its own family.