Returns a List of T of the filtered items given the query.
T
typedef MyoroMenuSearchCallback<T> = Set<T> Function(String query, Set<T> items);