updateIndex method

void updateIndex(
  1. int index
)

Implementation

void updateIndex(int index) {
  currentIndex.value = index;
}