Page class final

Pagination information.

Annotations

Constructors

Page({int number = 0, required int size})
Creates a Page object. number - zero based page index. size - the size of the page to be returned.
const
Page.first({required int size})
Creates first page. size - the size of the page to be returned.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
isFirst → bool
Returns true when this is the first page.
no setter
number → int
final
offset → int
Returns the offset to be taken according to page and page size.
no setter
props → List<Object>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
final
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

next() → Page
Returns next Page.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previous() → Page
Returns the previous Page or the first Page if the current one already is the first one.
toString() → String
A string representation of this object.

Operators

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