IPagination<T, S extends MessageBuilder> class
Null safety
Base interface for implementing pagination
- Implementers
Constructors
Properties
- currentPage → int
-
Current page that paginator is on
read-only
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- maxPage → int
-
Number of pages
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
getMessageBuilderForPage(
int page, S currentBuilder) → S -
Returns MessageBuilder for
page
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 non-existent 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