StepperFormState<Success, Failure extends Error> constructor
StepperFormState<Success, Failure extends Error> ({
- required int currentStep,
- required Map<
String, FormFieldState> fields, - BondFormStateStatus status = BondFormStateStatus.pristine,
- Success? success,
- 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.
currentStepThe current step number in the stepper form.fieldsA map of field names to their corresponding state objects.statusThe current status of the form (default is BondFormStateStatus.pristine).successThe success result of the form submission.failureThe failure result of the form submission.
Implementation
StepperFormState({
required this.currentStep,
required super.fields,
super.status,
super.success,
super.failure,
});