PaginationProps constructor
const
PaginationProps({
- required int currentPage,
- required int totalPages,
- void onPageChange(
- int page
- PaginationStyleVariant style = PaginationStyleVariant.outline,
- PaginationSizeVariant size = PaginationSizeVariant.md,
- int siblingCount = 1,
- bool showFirstLast = true,
- bool showPrevNext = true,
- bool showPageCount = false,
- String previousText = '<-',
- String nextText = '->',
- List<
int?> pageNumbers = const [],
Implementation
const PaginationProps({
required this.currentPage,
required this.totalPages,
this.onPageChange,
this.style = PaginationStyleVariant.outline,
this.size = PaginationSizeVariant.md,
this.siblingCount = 1,
this.showFirstLast = true,
this.showPrevNext = true,
this.showPageCount = false,
this.previousText = '<-',
this.nextText = '->',
this.pageNumbers = const [],
});