NumberBasedPagination<ResponseData> class
Number based pagination class implemented with delegate class style. NumberBasedPagination handles all number based page modification.
- Inheritance
-
- Object
- Pagination<
num, ResponseData> - NumberBasedPagination
Constructors
-
NumberBasedPagination.new({num initialPage = 0, PageIncrement<
num, ResponseData> ? onIncreasePage, PageReset<num> ? onResetPage, required PageUpdateHasNextPage<ResponseData> onUpdateHasNextPage}) - Constructor for creating a NumberBasedPagination
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasNextPage → bool
-
Getter for has next page boolean flag.
no setterinherited
- initialPage → num
-
Getter for initial page number / id.
no setterinherited
-
onIncreasePage
→ PageIncrement<
num, ResponseData> -
Injection function for implementing page increment.
finalinherited
-
onReloadResetPage
→ PageReset<
num> -
Injection function for implementing reload page reset.
finalinherited
-
onUpdateHasNextPage
→ PageUpdateHasNextPage<
ResponseData> -
Injection function for implementing update has next page.
finalinherited
- page → num
-
Getter for current page number / id.
no setterinherited
- 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