ChangePage constructor Null safety

  1. int page,
  2. Item item,
  3. {Slot? slot,
  4. 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).


  this.item, {
  Slot? slot,
  this.mode = ChangePageMode.exact,
}) : super(slot);