Signature for defining custom filtering logic for search.
typedef ItemFilter<T> = bool Function(T item, String query);