onNotifyWithCallback method

  1. @override
void onNotifyWithCallback(
  1. VoidCallback callback, [
  2. int index = 0
])
override

Implementation

@override
void onNotifyWithCallback(VoidCallback callback, [int index = 0]) {
  if (currentIndex != index) {
    currentIndex = index;
    super.onNotifyWithCallback(callback);
  }
}