searchContacts method
Searches for contacts by query string
query
- The search query (name, phone, email, etc.)
withProperties
- Whether to include detailed properties
sorted
- Whether to sort results by relevance
Implementation
Future<Result<List<Contact>>> searchContacts(
String query, {
bool withProperties = false,
bool sorted = true,
}) async {
_ensureInitialized();
return _repository.searchContacts(
query,
withProperties: withProperties,
sorted: sorted,
);
}