StepperController constructor
Creates a StepperController.
Parameters:
stepStates
(Map<int, StepState>?): initial step states (default: empty)currentStep
(int?): initial active step index (default: 0)
Example:
final controller = StepperController(
currentStep: 1,
stepStates: {0: StepState.failed},
);
Implementation
StepperController({
Map<int, StepState>? stepStates,
int? currentStep,
}) : super(StepperValue(
stepStates: stepStates ?? {},
currentStep: currentStep ?? 0,
));