IPagination<T, S extends MessageBuilder> class Null safety

Implementers

Constructors

IPagination()

Properties

currentPage int
Current page that paginator is on
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
maxPage int
Number of pages
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 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 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