toUpdatingFields method

FormBlocState<SuccessResponse, FailureResponse> toUpdatingFields({
  1. double? progress,
})

Returns a FormBlocUpdatingFields state with the properties of the current state.

It is the state when the form is updating the fields.

But you set this state manually.

Implementation

FormBlocState<SuccessResponse, FailureResponse> toUpdatingFields(
    {double? progress}) {
  final state = this;
  return FormBlocUpdatingFields(
    isValidByStep: _isValidByStep,
    isEditing: isEditing,
    fieldBlocs: _fieldBlocs,
    currentStep: currentStep,
    progress: progress ??
        (state is FormBlocUpdatingFields<SuccessResponse, FailureResponse>
            ? state.progress
            : 0.0),
  );
}