IPagination<T, S extends MessageBuilder> class
abstract
Base interface for implementing pagination
- Implementers
Constructors
Properties
- currentPage → int
-
Current page that paginator is on
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxPage → int
-
Number of pages
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getMessageBuilderForPage(
int page, S currentBuilder) → S -
Returns
MessageBuilder
forpage
number. Always modify builder passed incurrentBuilder
argument. -
initMessageBuilder(
) → S -
Initializes
MessageBuilder
with stuff need to paginate. Also hooks needed event to allow pagination. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onFirstPageButtonClicked(
) → void - Invoked on first page button click
-
onLastPageButtonClicked(
) → void - Invoked when last page button is clicked.
-
onNextPageButtonClicked(
) → void - Invoked when next page button is clicked.
-
onPreviousPageButtonClicked(
) → void - Invoked when previous page button is clicked.
-
toString(
) → String -
A string representation of this object.
inherited
-
updatePage(
int page, S currentBuilder, T target) → FutureOr< void> -
Invoked on each page update. Current page number is passed in
page
argument. Builder that message should be edited with is passed incurrentBuilder
argument.target
parameter is generic and allows customization of how message will be modified.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited