onPrevious method
Implementation
Future<void> onPrevious() async {
  if (currentStep > 0) {
    setState(() {
      currentStep = currentStep - 1;
    });
  }
}Future<void> onPrevious() async {
  if (currentStep > 0) {
    setState(() {
      currentStep = currentStep - 1;
    });
  }
}