GridResult<TListItem> class

A class representing the result of a paginated grid, containing a list of items and pagination-related metadata.

Constructors

GridResult.new({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})
Constructs a GridResult instance with optional parameters.
GridResult.fromMap(Map map, [TListItem itemParser(Map<String, dynamic> data)?])
Factory constructor that creates an instance of GridResult from a Map.
factory

Properties

additionalData ↔ dynamic
getter/setter pair
currentPage int
getter/setter pair
endPage int
getter/setter pair
firstRowOnPage int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasItems bool
getter/setter pair
hasMoreItems bool
getter/setter pair
hasMultiplePages int
getter/setter pair
hasNextPage int
getter/setter pair
hasPreviousPage int
getter/setter pair
items List<TListItem>
getter/setter pair
lastRowOnPage int
getter/setter pair
numberOfCachedItems int
getter/setter pair
pageCount int
getter/setter pair
pageSize int
getter/setter pair
rowCount int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startPage int
getter/setter pair

Methods

map(GridResult<TListItem> other) → void
Maps the properties of another GridResult instance to the current instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited