addPaginationIfNotAdded method

void addPaginationIfNotAdded()

Implementation

void addPaginationIfNotAdded(){
  bool hasPagination = false;
  for(dynamic data in items){
    if(data is PaginationLoad){
      hasPagination = true;
      break;
    }
  }

  if(!hasPagination){
    addItem(pagination);
  }
}