setPagination method
Apply a pagination query to the HTTP request
Implementation
setPagination(int page,
{String? paramPage, String? paramPerPage, String? perPage}) {
Map<String, dynamic> query = {(paramPage ?? "page"): page};
if (perPage != null) {
query.addAll({(paramPerPage ?? "per_page"): perPage});
}
_api.options.queryParameters.addAll(query);
}