onIndexChanged method

void onIndexChanged()

Implementation

void onIndexChanged() {
  refreshState();
}