updatePagination method

void updatePagination(
  1. 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;
}