Pagination<PageType, ResponseData> class abstract

Base pagination class implemented with delegate class style. Pagination handles all page modification.

Constructors

Pagination.new({required PageType initialPage, required PageIncrement<PageType, ResponseData> onIncreasePage, required PageReset<PageType> onReloadResetPage, required PageUpdateHasNextPage<ResponseData> onUpdateHasNextPage})
Constructor for creating a Pagination

Properties

hashCode int
The hash code for this object.
no setterinherited
hasNextPage bool
Getter for has next page boolean flag.
no setter
initialPage → PageType
Getter for initial page number / id.
no setter
onIncreasePage PageIncrement<PageType, ResponseData>
Injection function for implementing page increment.
final
onReloadResetPage PageReset<PageType>
Injection function for implementing reload page reset.
final
onUpdateHasNextPage PageUpdateHasNextPage<ResponseData>
Injection function for implementing update has next page.
final
page → PageType
Getter for current page number / id.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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