BasicPaginationHandler class

Basic pagination handler based on String. Each entry in pages will be different page.

Inheritance

Constructors

BasicPaginationHandler(List<String> pages)
Generates new pagination from List of Strings. Each list element is single page.
BasicPaginationHandler.fromString(String str, MessageChannel channel)
Generates pagination from String. It divides String into 250 char long pages.
factory
BasicPaginationHandler.fromStringEq(String str, int pieces, MessageChannel channel)
Generates pagination from String but with user specified number of pages.
factory
BasicPaginationHandler.fromStringLen(String str, int len, MessageChannel channel)
Generates pagination from String but with user specified size of single page.
factory

Properties

backEmoji FutureOr<Emoji>
Emoji used to navigate to previous page. Default: "◀"
read-only, inherited
dataLength int
Return total number of pages
read-only, override
firstEmoji FutureOr<Emoji>
Emoji used to navigate to first page. Default: "⏮"
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
lastEmoji FutureOr<Emoji>
Emoji used to navigate to last page. Default: "⏭"
read-only, inherited
nextEmoji FutureOr<Emoji>
Emoji used to navigate to next page. Default: "▶"
read-only, inherited
pages List<String>
Pages of paginated message
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

generateInitialPage() FutureOr<MessageBuilder>
Used to generate fist page of Paginated message.
override
generatePage(int page) FutureOr<MessageEditBuilder>
Used to generate message based on given page number.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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