PaginationPlus constructor

const PaginationPlus({
  1. Key? key,
  2. required int currentPageIndex,
  3. required int totalPages,
  4. required int totalCount,
  5. required int rowsPerPage,
  6. required int startIndex,
  7. required int endIndex,
  8. Color paginationColor = const Color(0xFFF0F0F0),
  9. Color secondaryColor = const Color(0xFF704264),
  10. Color tableDividerColor = const Color(0xFFE0E0E0),
  11. Color greyColor = const Color(0xFFBABEC2),
  12. required List<int> availableRowsPerPage,
  13. required bool isTablet,
  14. required bool isMobile,
  15. required ValueChanged<int> onPageChanged,
  16. required ValueChanged<int> onRowsPerPageChanged,
})

Creates a PaginationPlus widget.

All parameters are required to properly render the pagination controls.

Implementation

const PaginationPlus({
  super.key,
  required this.currentPageIndex,
  required this.totalPages,
  required this.totalCount,
  required this.rowsPerPage,
  required this.startIndex,
  required this.endIndex,
  this.paginationColor = const Color(0xFFF0F0F0),
  this.secondaryColor = const Color(0xFF704264),
  this.tableDividerColor = const Color(0xFFE0E0E0),
  this.greyColor = const Color(0xFFBABEC2),
  required this.availableRowsPerPage,
  required this.isTablet,
  required this.isMobile,
  required this.onPageChanged,
  required this.onRowsPerPageChanged,
});