prevStep method
Implementation
Future<void> prevStep() async {
var prevFunction = pages[vm.currentStep].onBack;
if (prevFunction != null) {
await prevFunction();
}
if (vm.currentStep > 0) {
vm.currentStep--;
await _pageController.previousPage(
duration: const Duration(milliseconds: 300),
curve: Curves.easeInOut,
);
vm.redraw();
}
}