queryUsers method

Future<QueryUsersResponse> queryUsers({
  1. bool? presence,
  2. Filter? filter,
  3. List<SortOption>? sort,
  4. PaginationParams? pagination,
})

Requests users with a given query.

Implementation

Future<QueryUsersResponse> queryUsers({
  bool? presence,
  Filter? filter,
  List<SortOption>? sort,
  PaginationParams? pagination,
}) async {
  final response = await _chatApi.user.queryUsers(
    presence: presence ?? _connectionIdManager.hasConnectionId,
    filter: filter,
    sort: sort,
    pagination: pagination,
  );
  state.updateUsers(response.users);
  return response;
}