ChangePage constructor
ChangePage(
- int page,
- Item item, {
- Slot? slot,
- ChangePageMode mode = ChangePageMode.exact,
Like the name states, this is a simple way to change the current page. As usual you define an item and slot and additionally the index of the page you want to navigate to(starting with 1).
Implementation
ChangePage(
this.page,
this.item, {
Slot? slot,
this.mode = ChangePageMode.exact,
}) : super(slot);