SearchPredicate<T> typedef
A function that scores how well a value matches a search query.
Returns a score where higher values indicate better matches.
Implementation
typedef SearchPredicate<T> = double Function(T value, String query);