extractAllSorted<T> function

List<ExtractedResult<T>> extractAllSorted<T>({
  1. required String query,
  2. required List<T> choices,
  3. int cutoff = 0,
  4. Applicable ratio = const WeightedRatio(),
  5. String getter(
    1. 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);
}