matches method

bool matches(
  1. String query
)

Implementation

bool matches(String query) {
  final normalized = query.trim().toLowerCase();
  if (normalized.isEmpty) return true;
  return searchIndex.contains(normalized);
}