searchContacts method

Future<Result<List<Contact>>> searchContacts(
  1. String query, {
  2. bool withProperties = false,
  3. bool sorted = true,
})

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