search method

Future<Result<ContactsFoundBase>> search({
  1. required String q,
  2. required int limit,
})

Search.

ID: 11f812d8.

Implementation

Future<Result<ContactsFoundBase>> search({
  required String q,
  required int limit,
}) async {
  // Preparing the request.
  final request = ContactsSearch(
    q: q,
    limit: limit,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<ContactsFoundBase>();
}