toLoaded method

FormBlocState<SuccessResponse, FailureResponse> toLoaded(
  1. SuccessResponse? successResponse
)

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

It is the state when you can submit the FormBloc.

Implementation

FormBlocState<SuccessResponse, FailureResponse> toLoaded(SuccessResponse? successResponse) =>
    FormBlocLoaded(
      successResponse: successResponse,
      isValidByStep: _isValidByStep,
      isEditing: isEditing,
      fieldBlocs: _fieldBlocs,
      currentStep: currentStep,
    );