WizardModel constructor

WizardModel({
  1. required List<WizardStep> steps,
  2. String? title,
  3. 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();
}