FormBlocSubmitting<SuccessResponse, FailureResponse> constructor
FormBlocSubmitting<SuccessResponse, FailureResponse> ({})
progress
must be greater than or equal to 0.0 and less than or equal to 1.0.
- If
progress
is less than 0, it will become 0.0 - If
progress
is greater than 1, it will become 1.0
Implementation
FormBlocSubmitting({
Map<int, bool> isValidByStep = const {},
bool isEditing = false,
double progress = 0.0,
this.isCanceling = false,
Map<int, Map<String, FieldBloc>> fieldBlocs = const {},
int currentStep = 0,
}) : assert(progress >= 0.0 && progress <= 1.0),
progress = progress.clamp(0.0, 1.0),
super(
isValidByStep: isValidByStep,
isEditing: isEditing,
fieldBlocs: fieldBlocs,
currentStep: currentStep,
);