matchesForItem method
Gets match indices for an item (for highlighting).
Implementation
List<int>? matchesForItem(int index) {
if (_filteredItems.isEmpty || index >= _filteredItems.length) {
return null;
}
return _filteredItems[index].matches;
}