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