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