search method

Future<Result<ContactsFoundBase>> search({
  1. required bool broadcasts,
  2. required bool bots,
  3. required String q,
  4. required int limit,
})

Search.

ID: 05f58d0f.

Implementation

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

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

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