extractAllSorted<T> function
List<ExtractedResult<T> >
extractAllSorted<T>({
- required String query,
- required List<
T> choices, - int cutoff = 0,
- Applicable ratio = const WeightedRatio(),
- String getter(
- T obj
Returns a sorted list of ExtractedResult without any cutoffs.
Uses WeightedRatio as the default algorithm.
getter
is optional for String types, but MUST NOT be null for any other
types
Implementation
List<ExtractedResult<T>> extractAllSorted<T>({
required String query,
required List<T> choices,
int cutoff = 0,
Applicable ratio = const WeightedRatio(),
String Function(T obj)? getter,
}) {
var extractor = Extractor(cutoff);
return extractor.extractSorted(query, choices, ratio, getter);
}