WizardStepController constructor

WizardStepController({
  1. required WizardStep step,
  2. bool isBackEnabled = true,
  3. bool isNextEnabled = true,
})

Coordinates the wizard steps and its input control states

step: The wizard step which can contain ever state management solution that you wish. A provider, bloc, etc can be provided in this property.

initialIndex: Indicates the initial index of the wizard.

initialIsPreviousEnabled: Indicates if the previous button will be enabled on the initial load.

initialIsNextEnabled: Indicates if the previous button will be enabled on the initial load.

Implementation

factory WizardStepController({
  required WizardStep step,
  bool isBackEnabled = true,
  bool isNextEnabled = true,
}) {
  return WizardStepControllerImpl(
    step: step,
    isBackEnabled: isBackEnabled,
    isNextEnabled: isNextEnabled,
  );
}