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