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