setPage method

void setPage(
  1. int page
)

Implementation

void setPage(int page) async {
  assert(
    page < widget.items.length && page >= 0,
    'Initial index out of range',
  );
  await navigateTo(page);
}