A function that filters the results of a search based on the index of the item.
index
typedef FlatbushFilter = bool Function(ItemIdx index);