IComponentPagination class Null safety

Base component paginator. If don't want custom behavior on page update use ComponentPagination.

Inheritance
Implementers

Constructors

IComponentPagination(Interactions interactions)
Creates new paginator using interactions

Properties

builder ComponentMessageBuilder
Message builder used to create paginated messages
read / write
currentPage int
Current page that paginator is on
read / write, inherited
customPreId String
Custom id for this instance of paginator that different paginators could be recognized.
late, final
hashCode int
The hash code for this object. [...]
read-only, inherited
interactions Interactions
Reference to Interactions
final
maxPage int
Number of pages
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getMessageBuilderForPage(int page, ComponentMessageBuilder currentBuilder) ComponentMessageBuilder
Returns MessageBuilder for page number. Always modify builder passed in currentBuilder argument.
inherited
initHook(ComponentMessageBuilder builder) ComponentMessageBuilder
Called after initializing basic components.
initMessageBuilder() ComponentMessageBuilder
Inits ComponentMessageBuilder with buttons needed for pagination. And hooks needed events.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onFirstPageButtonClicked() → void
Invoked on first page button click
inherited
onLastPageButtonClicked() → void
Invoked when last page button is clicked.
inherited
onNextPageButtonClicked() → void
Invoked when next page button is clicked.
inherited
onPreviousPageButtonClicked() → void
Invoked when previous page button is clicked.
inherited
toString() String
A string representation of this object. [...]
inherited
updatePage(int page, ComponentMessageBuilder currentBuilder, ButtonInteractionEvent 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.
inherited

Operators

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