ZetaPagination constructor
- bool? rounded,
- Key? key,
- required int pages,
- ZetaPaginationType type = ZetaPaginationType.standard,
- void onChange(
- int value
- int currentPage = 1,
- @Deprecated('Set onChange to null. ' 'Disabled is deprecated as of 0.11.0') bool disabled = false,
- String? semanticFirst,
- String? semanticPrevious,
- String? semanticNext,
- String? semanticLast,
- String? semanticDropdown,
Creates a new ZetaPagination
Implementation
const ZetaPagination({
super.rounded,
super.key,
required this.pages,
this.type = ZetaPaginationType.standard,
this.onChange,
this.currentPage = 1,
@Deprecated('Set onChange to null. ' 'Disabled is deprecated as of 0.11.0') bool disabled = false,
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',
);