setCurrentStep method
- int index
Implementation
void setCurrentStep(int index) {
if (index >= 0 && index < state.totalSteps) {
emit(state.copyWith(currentStep: index));
}
}
void setCurrentStep(int index) {
if (index >= 0 && index < state.totalSteps) {
emit(state.copyWith(currentStep: index));
}
}