PagedMessageSequence class Null safety

A paginated list of message IDs

Constructors

PagedMessageSequence(MessageSequence sequence, {int pageSize = 30})
Creates a new paged sequence from the given sequence with the optional pageSize.
PagedMessageSequence.empty({int pageSize = 30})
Creates a new empty paged sequence with the optional pageSize.

Properties

currentPageIndex int
Retrieves the 0-based index of the current page
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
hasNext bool
Checks if this paged list has a next page
read-only
isUidSequence bool
Determines if this is a UID sequence
read-only
length int
Retrieves the length of the sequence
read-only
pageSize int
The page size
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sequence MessageSequence
The original sequence
final

Methods

add(int id) → void
Adds the given ID to this paged sequence
getCurrentPage() MessageSequence
Retrieves the sequence for the current page. [...]
next() MessageSequence
Advances this sequence to the next page and then returns getCurrentPage(). [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
remove(int id) → void
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited
operator [](int index) int
Retrieves the ID at the given index