WizardModel constructor
WizardModel({
- required List<
WizardStep> steps, - String? title,
- bool showProgress = true,
Creates a wizard model.
Implementation
WizardModel({required this.steps, this.title, this.showProgress = true})
: _answers = {},
_currentStepIndex = 0,
_currentModel = null {
_flattenedSteps = _flattenSteps(steps);
_initCurrentStep();
}