QudsCollectionPagination<T> constructor
const
QudsCollectionPagination<T> ({
- required int selectedPage,
- required List<
T> currentPageItems, - required Widget itemBuilder(
- BuildContext context,
- int index,
- T obj
- Widget dividerBuilder(
- BuildContext context,
- int index
- required dynamic onPageChanged(
- int page
- dynamic onResultsPerPageChanged(
- int resultsPerPage
- int resultsPerPage = 5,
- List<
int> pageItemLengths = const [5, 10, 20, 30, 50, 100], - CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
- EdgeInsets? itemsPadding,
- required int total,
- Widget? header,
- Key? key,
Create an instance of QudsCollectionPagination.
Implementation
const QudsCollectionPagination(
{required this.selectedPage,
required this.currentPageItems,
required this.itemBuilder,
this.dividerBuilder,
required this.onPageChanged,
this.onResultsPerPageChanged,
this.resultsPerPage = 5,
this.pageItemLengths = const [5, 10, 20, 30, 50, 100],
this.crossAxisAlignment = CrossAxisAlignment.start,
this.itemsPadding,
required this.total,
this.header,
Key? key})
: assert(selectedPage >= 1),
assert(total >= 0),
assert(resultsPerPage > 0),
super(key: key);