onNotifyWithCallback method

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

Implementation

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