onPrevious method
void
onPrevious()
Implementation
void onPrevious() {
if (currentIndex != 0) {
setState(() {
currentIndex--;
});
widget.onPrevious?.call();
}
}
void onPrevious() {
if (currentIndex != 0) {
setState(() {
currentIndex--;
});
widget.onPrevious?.call();
}
}