setIndex method

void setIndex(
  1. int index
)

Implementation

void setIndex(int index) {
  currentIndex = index;
  notifyListeners();
}