Pagination constructor

const Pagination({
  1. required int numOfPages,
  2. required int selectedPage,
  3. required int pagesVisible,
  4. required Function onPageChanged,
  5. TextStyle? activeTextStyle,
  6. ButtonStyle? activeBtnStyle,
  7. TextStyle? inactiveTextStyle,
  8. ButtonStyle? inactiveBtnStyle,
  9. Icon? previousIcon,
  10. Icon? nextIcon,
  11. double? spacing,
  12. Key? key,
})

Implementation

const Pagination({
  required this.numOfPages,
  required this.selectedPage,
  required this.pagesVisible,
  required this.onPageChanged,
  this.activeTextStyle,
  this.activeBtnStyle,
  this.inactiveTextStyle,
  this.inactiveBtnStyle,
  this.previousIcon,
  this.nextIcon,
  this.spacing,
  super.key,
});