StepperFormState<Success, Failure extends Error> constructor

StepperFormState<Success, Failure extends Error>({
  1. required int currentStep,
  2. required Map<String, FormFieldState> fields,
  3. BondFormStateStatus status = BondFormStateStatus.pristine,
  4. Success? success,
  5. Failure? failure,
})

Creates an instance of StepperFormState with specific field values.

This constructor allows you to manually specify the current step, field states, and other optional parameters like status, success, and failure results.

  • currentStep The current step number in the stepper form.
  • fields A map of field names to their corresponding state objects.
  • status The current status of the form (default is BondFormStateStatus.pristine).
  • success The success result of the form submission.
  • failure The failure result of the form submission.

Implementation

StepperFormState({
  required this.currentStep,
  required super.fields,
  super.status,
  super.success,
  super.failure,
});