getUsers function
Future<PagedResult<CubeUser> ?>
getUsers(
- Map<
String, dynamic> parameters, { - RequestPaginator? paginator,
- RequestSorter? sorter,
The method returns the list according to the specified list of parameters.
The list of available parameters
is provided in the Server API documentation
by link https://developers.connectycube.com/server/users?id=retrieve-users-v2
paginator
- the instance of the helper class RequestPaginator
that is representing
the pagination parameters in the 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>?> getUsers(Map<String, dynamic> parameters,
{RequestPaginator? paginator, RequestSorter? sorter}) {
return GetUsersV2Query(parameters, paginator: paginator, sorter: sorter)
.perform();
}