matchesForItem method

List<int>? matchesForItem(
  1. int index
)

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;
}