IPagination<T, S extends MessageBuilder> class abstract

Base interface for implementing pagination

Implementers

Constructors

IPagination()

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 for page number. Always modify builder passed in currentBuilder 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 in currentBuilder argument. target parameter is generic and allows customization of how message will be modified.

Operators

operator ==(Object other) bool
The equality operator.
inherited