FormBlocLoaded<SuccessResponse, FailureResponse> class

It is the state when you can submit the FormBloc.

This class should not be used directly, instead use FormBlocState.toLoaded.

Inheritance

Constructors

FormBlocLoaded({Map<int, bool> isValidByStep = const {}, bool isEditing = false, Map<int, Map<String, FieldBloc<FieldBlocStateBase>>> fieldBlocs = const {}, int currentStep = 0})

Properties

canSubmit → bool
Returns true if the state is FormBlocLoaded or FormBlocFailure or FormBlocSubmissionCancelled or FormBlocSubmissionFailed or FormBlocDeleteFailed or FormBlocSuccess.canSubmitAgain or is ( FormBlocSuccess and not is in the last step ).
no setterinherited
currentStep → int
finalinherited
fields → Iterable<FieldBloc<FieldBlocStateBase>>
All FieldBlocs in the form.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isEditing → bool
It is usually used in forms that are used as CRUD, so when it is true it means that you can perform the update operation.
finalinherited
isFirstStep → bool
no setterinherited
isLastStep → bool
no setterinherited
lastStep → int
no setterinherited
notValidStep → int?
no setterinherited
numberOfSteps → int
no setterinherited
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

booleanFieldBlocOf<ExtraData>(String name) → BooleanFieldBloc<ExtraData>?
inherited
contains(FieldBloc<FieldBlocStateBase> fieldBloc, {int? step, bool deep = true}) → bool
Returns true if the FormBloc contains fieldBloc
inherited
fieldBlocs([int? step]) → Map<String, FieldBloc<FieldBlocStateBase>>?
inherited
flatFieldBlocs([int? step]) → Iterable<FieldBloc<FieldBlocStateBase>>?
inherited
groupFieldBlocOf(String name) → GroupFieldBloc<FieldBloc<FieldBlocStateBase>, dynamic>?
inherited
inputFieldBlocOf<Value, ExtraData>(String name) → InputFieldBloc<Value, ExtraData>?
inherited
isInitial([int? step]) → bool
inherited
isValid([int? step]) → bool
inherited
listFieldBlocOf<T extends FieldBloc<FieldBlocStateBase>>(String name) → ListFieldBloc<T, dynamic>?
inherited
multiSelectFieldBlocOf<Value, ExtraData>(String name) → MultiSelectFieldBloc<Value, ExtraData>?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
selectFieldBlocOf<Value, ExtraData>(String name) → SelectFieldBloc<Value, ExtraData>?
inherited
textFieldBlocOf<ExtraData>(String name) → TextFieldBloc<ExtraData>?
inherited
toDeleteFailed({FailureResponse? failureResponse}) → FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocDeleteFailed state with the properties of the current state.
inherited
toDeleteSuccessful({SuccessResponse? successResponse}) → FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocDeleteSuccessful state with the properties of the current state.
inherited
toFailure({FailureResponse? failureResponse}) → FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocFailure state with the properties of the current state.
inherited
toJson([int? step]) → Map<String, dynamic>
inherited
toLoaded() → FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocLoaded state with the properties of the current state.
inherited
toLoadFailed({FailureResponse? failureResponse}) → FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocLoadFailed state with the properties of the current state.
inherited
toLoading({double? progress}) → FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocLoading state with the properties of the current state.
inherited
toString() → String
A string representation of this object.
inherited
toSubmissionCancelled() → FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocSubmissionCancelled state with the properties of the current state.
inherited
toSubmitting({double? progress}) → FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocSubmitting state with the properties of the current state.
inherited
toSuccess({SuccessResponse? successResponse, bool? canSubmitAgain, bool? isEditing}) → FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocSuccess state with the properties of the current state.
inherited
toUpdatingFields({double? progress}) → FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocUpdatingFields state with the properties of the current state.
inherited
valueListOf<T>(String name) → List<T>?
inherited
valueMapListOf<T>(String name) → List<Map<String, T>>?
inherited
valueMapOf<T>(String name) → Map<String, T>?
inherited
valueOf<T>(String name) → T?
Returns the value of FieldBloc that has this name.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited