onNext method
Implementation
Future<void> onNext() async {
if (currentStep < lastStep) {
setState(() {
currentStep = currentStep + 1;
});
} else {
widget.onPassedAllSteps();
}
}
Future<void> onNext() async {
if (currentStep < lastStep) {
setState(() {
currentStep = currentStep + 1;
});
} else {
widget.onPassedAllSteps();
}
}