GridResult<TListItem> constructor

GridResult<TListItem>({
  1. List<TListItem> items = const [],
  2. bool hasMoreItems = true,
  3. int currentPage = 0,
  4. int startPage = 0,
  5. int endPage = 0,
  6. int pageCount = 0,
  7. int pageSize = 0,
  8. int rowCount = 0,
  9. int hasPreviousPage = 0,
  10. int hasNextPage = 0,
  11. int hasMultiplePages = 0,
  12. int firstRowOnPage = 0,
  13. int lastRowOnPage = 0,
  14. bool hasItems = true,
  15. dynamic additionalData,
})

Implementation

GridResult({
  this.items = const [],
  this.hasMoreItems = true,
  this.currentPage = 0,
  this.startPage = 0,
  this.endPage = 0,
  this.pageCount = 0,
  this.pageSize = 0,
  this.rowCount = 0,
  this.hasPreviousPage = 0,
  this.hasNextPage = 0,
  this.hasMultiplePages = 0,
  this.firstRowOnPage = 0,
  this.lastRowOnPage = 0,
  this.hasItems = true,
  this.additionalData,
}) {
  hasMoreItems = hasMoreItems || items.count == pageSize;
  hasItems = hasItems || items.isNotNullOrEmpty;
}