Pagination constructor

const Pagination({
  1. Key? key,
  2. required int page,
  3. required int totalPages,
  4. required ValueChanged<int> onPageChanged,
  5. int maxPages = 3,
  6. bool showSkipToFirstPage = true,
  7. bool showSkipToLastPage = true,
  8. bool hidePreviousOnFirstPage = false,
  9. bool hideNextOnLastPage = false,
  10. bool showLabel = true,
})

Implementation

const Pagination({
  super.key,
  required this.page,
  required this.totalPages,
  required this.onPageChanged,
  this.maxPages = 3,
  this.showSkipToFirstPage = true,
  this.showSkipToLastPage = true,
  this.hidePreviousOnFirstPage = false,
  this.hideNextOnLastPage = false,
  this.showLabel = true,
});