updatePagination method
- PaginatedResponse response
update the pagination
Implementation
void updatePagination(PaginatedResponse response) {
_currentPage = response.pageInfo.currentPage;
_lastPage = response.pageInfo.lastPage;
_total = response.pageInfo.total;
_perPage = response.pageInfo.perPage;
_currentLength += response.data.length;
}