setStatus method
Implementation
void setStatus(int step, StepState? state) {
Map<int, StepState> newStates = Map.from(value.stepStates);
if (state == null) {
newStates.remove(step);
} else {
newStates[step] = state;
}
value = StepperValue(
stepStates: newStates,
currentStep: value.currentStep,
);
}