changePage method

void changePage(
  1. int index
)

Implementation

void changePage(int index) {
  if (index != currentIndex.value) {
    currentIndex.value = index;
  }
}