update method
Updates the response, merging in the items of res
and adopting its pagination key.
Implementation
void update(PaginatedItemsResponse<T> res) {
updateItems(res.items);
paginationKey = res.paginationKey;
// The raw page length, before de-duplication — that is what tells us
// whether the API had a full page left to give.
_lastPageLength = res.items.length;
}