nextPage method
dynamic
nextPage(
- dynamic index
Implementation
nextPage(index) {
if (index == combinedList.length - 1) {
Navigator.pop(context);
return;
}
setState(() {
selectedIndex = index + 1;
});
_pageController!.animateToPage(selectedIndex!,
duration: const Duration(milliseconds: 100), curve: Curves.easeIn);
}