ComponentPaginationAbstract constructor Null safety

ComponentPaginationAbstract(
  1. IInteractions interactions,
  2. {String firstLabel = '<<',
  3. String prevLabel = '<',
  4. String nextLabel = '>',
  5. String lastLabel = '>>',
  6. IEmoji? firstEmoji,
  7. IEmoji? prevEmoji,
  8. IEmoji? nextEmoji,
  9. IEmoji? lastEmoji,
  10. Duration? timeout,
  11. IUser? user}
)

Creates new paginator using interactions

The *Label and *Emoji parameters control the emojis and labels used for the pagination buttons.

Implementation

ComponentPaginationAbstract(
  this.interactions, {
  this.firstLabel = '<<',
  this.prevLabel = '<',
  this.nextLabel = '>',
  this.lastLabel = '>>',
  this.firstEmoji,
  this.prevEmoji,
  this.nextEmoji,
  this.lastEmoji,
  this.timeout,
  this.user,
}) {
  customPreId = randomAlpha(10);
}