SphericalKat / dart-fuzzywuzzy

A dart port of the popular fuzzywuzzy package
https://pub.dev/packages/fuzzywuzzy
GNU General Public License v2.0
42 stars 7 forks source link

Add Generics for passing other kind of list #1

Closed wer-mathurin closed 3 years ago

wer-mathurin commented 3 years ago

@SphericalKat,

very good first implementation and easy to use;

Add the capability of passing: List instead of a list of String

When providing a generic List, we must provide a getter function for the search => String Function(T)

You can also parametrize the class ExtractedResult and add a property let say final T original;

By doing this we would not require to convert the original list of Something to a list a String and convert it again to a List of Something.

SphericalKat commented 3 years ago

Got it, I'll be working on this soon :)

SphericalKat commented 3 years ago

Closed in f1d0d24.