ZetaPagination constructor
Creates a new ZetaPagination
Implementation
const ZetaPagination({
super.rounded,
super.key,
required this.pages,
this.type = ZetaPaginationType.standard,
this.onChange,
this.currentPage = 1,
this.semanticFirst,
this.semanticPrevious,
this.semanticNext,
this.semanticLast,
this.semanticDropdown,
}) : assert(
pages > 0,
'Pages must be greater than zero',
),
assert(
currentPage >= 1 && currentPage <= pages,
'currentPage must be greater than 1 and less than the number of pages',
);