PaginationPlus constructor
const
PaginationPlus({
- Key? key,
- required int currentPageIndex,
- required int totalPages,
- required int totalCount,
- required int rowsPerPage,
- required int startIndex,
- required int endIndex,
- Color paginationColor = const Color(0xFFF0F0F0),
- Color secondaryColor = const Color(0xFF704264),
- Color tableDividerColor = const Color(0xFFE0E0E0),
- Color greyColor = const Color(0xFFBABEC2),
- required List<
int> availableRowsPerPage, - required bool isTablet,
- required bool isMobile,
- required ValueChanged<
int> onPageChanged, - 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,
});