getUsersByFullName function

Future<PagedResult<CubeUser>?> getUsersByFullName(
  1. String fullName, {
  2. RequestPaginator? paginator,
  3. RequestSorter? sorter,
})

fullName - the part of the 'fullName' with which the name begins. paginator - the instance of the helper class RequestPaginator that is representing the pagination parameters in the request. Pay attention: the paginator.itemsPerPage should be 5 for this request. Note: the paginator.page should start from 0. sorter - the instance of the helper class RequestSorter that is representing the sorting parameters in the request. The example can be var sorter = RequestSorter.desc('created_at');

Implementation

Future<PagedResult<CubeUser>?> getUsersByFullName(String fullName,
    {RequestPaginator? paginator, RequestSorter? sorter}) {
  return GetUsersV2Query(
    {'$FILTER_FULL_NAME[${QueryRule.START_WITH}]': fullName},
    paginator: paginator,
    sorter: sorter,
  ).perform();
}