GridResult<TListItem> constructor
GridResult<TListItem> ({
- List<
TListItem> items = const [], - bool hasMoreItems = true,
- int currentPage = 0,
- int startPage = 0,
- int endPage = 0,
- int pageCount = 0,
- int pageSize = 0,
- int rowCount = 0,
- int hasPreviousPage = 0,
- int hasNextPage = 0,
- int hasMultiplePages = 0,
- int firstRowOnPage = 0,
- int lastRowOnPage = 0,
- bool hasItems = true,
- 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;
}