SearchUtils class

Constructors

SearchUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

advancedSearch<T>({required List<T> items, required String searchTerm, required List<String> getSearchableFields(T item)}) List<T>
Função de busca avançada com normalização de texto
highlightSearchTerm(String text, String searchTerm) String
Função para destacar texto encontrado (útil para UI)
normalizeText(String text) String
Função específica para normalizar texto removendo acentos e caracteres especiais
searchInList<T>({required List<T> items, required String searchTerm, required List<String> getSearchableFields(T item)}) List<T>
Função genérica para buscar em uma lista de objetos