setCurrentIndex method

void setCurrentIndex(
  1. int? index
)

Implementation

void setCurrentIndex(int? index) {
  onNotifyWithCallback(() => currentIndex = index ?? 0);
}