PaginationProps constructor

const PaginationProps({
  1. required int currentPage,
  2. required int totalPages,
  3. void onPageChange(
    1. int page
    )?,
  4. PaginationStyleVariant style = PaginationStyleVariant.outline,
  5. PaginationSizeVariant size = PaginationSizeVariant.md,
  6. int siblingCount = 1,
  7. bool showFirstLast = true,
  8. bool showPrevNext = true,
  9. bool showPageCount = false,
  10. String previousText = '<-',
  11. String nextText = '->',
  12. List<int?> pageNumbers = const [],
})

Implementation

const PaginationProps({
  required this.currentPage,
  required this.totalPages,
  this.onPageChange,
  this.style = PaginationStyleVariant.outline,
  this.size = PaginationSizeVariant.md,
  this.siblingCount = 1,
  this.showFirstLast = true,
  this.showPrevNext = true,
  this.showPageCount = false,
  this.previousText = '<-',
  this.nextText = '->',
  this.pageNumbers = const [],
});