UNumberPagination constructor

const UNumberPagination({
  1. required int currentPage,
  2. required int totalPages,
  3. required ValueChanged<int> onPageChanged,
  4. Key? key,
  5. int threshold = 3,
  6. Color? selectedColor,
  7. Color? unselectedColor,
  8. bool showPrevNext = true,
  9. Icon? prevIcon,
  10. Icon? nextIcon,
})

Implementation

const UNumberPagination({
  required this.currentPage,
  required this.totalPages,
  required this.onPageChanged,
  super.key,
  this.threshold = 3,
  this.selectedColor,
  this.unselectedColor,
  this.showPrevNext = true,
  this.prevIcon,
  this.nextIcon,
});