Page<T> class

A page of data.

Constructors

Page({required List<T> items, required int totalElements, required int pageNumber, required int pageSize})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
hasNext bool
Whether there are more pages.
no setter
hasPrevious bool
Whether there are previous pages.
no setter
items List<T>
The items in this page.
final
pageNumber int
The current page number.
final
pageSize int
The size of each page.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalElements int
The total number of items across all pages.
final
totalPages int
The total number of pages.
no setter

Methods

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