FormBlocState<SuccessResponse, FailureResponse> class abstract

Implementers

Constructors

FormBlocState({required Map<int, bool> isValidByStep, required bool isEditing, required Map<int, Map<String, FieldBloc<FieldBlocStateBase>>> fieldBlocs, required int currentStep})

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 setter
currentStep int
final
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.
final
isFirstStep bool
no setter
isLastStep bool
no setter
lastStep int
no setter
notValidStep int?
no setter
numberOfSteps int
no setter
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setterinherited
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>?
contains(FieldBloc<FieldBlocStateBase> fieldBloc, {int? step, bool deep = true}) bool
Returns true if the FormBloc contains fieldBloc
fieldBlocs([int? step]) Map<String, FieldBloc<FieldBlocStateBase>>?
flatFieldBlocs([int? step]) Iterable<FieldBloc<FieldBlocStateBase>>?
groupFieldBlocOf(String name) GroupFieldBloc<FieldBloc<FieldBlocStateBase>, dynamic>?
inputFieldBlocOf<Value, ExtraData>(String name) InputFieldBloc<Value, ExtraData>?
isInitial([int? step]) bool
isValid([int? step]) bool
listFieldBlocOf<T extends FieldBloc<FieldBlocStateBase>>(String name) ListFieldBloc<T, dynamic>?
multiSelectFieldBlocOf<Value, ExtraData>(String name) MultiSelectFieldBloc<Value, ExtraData>?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
selectFieldBlocOf<Value, ExtraData>(String name) SelectFieldBloc<Value, ExtraData>?
textFieldBlocOf<ExtraData>(String name) TextFieldBloc<ExtraData>?
toDeleteFailed({FailureResponse? failureResponse}) FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocDeleteFailed state with the properties of the current state.
toDeleteSuccessful({SuccessResponse? successResponse}) FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocDeleteSuccessful state with the properties of the current state.
toFailure({FailureResponse? failureResponse}) FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocFailure state with the properties of the current state.
toJson([int? step]) Map<String, dynamic>
toLoaded() FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocLoaded state with the properties of the current state.
toLoadFailed({FailureResponse? failureResponse}) FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocLoadFailed state with the properties of the current state.
toLoading({double? progress}) FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocLoading state with the properties of the current state.
toString() String
A string representation of this object.
toSubmissionCancelled() FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocSubmissionCancelled state with the properties of the current state.
toSubmitting({double? progress}) FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocSubmitting state with the properties of the current state.
toSuccess({SuccessResponse? successResponse, bool? canSubmitAgain, bool? isEditing}) FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocSuccess state with the properties of the current state.
toUpdatingFields({double? progress}) FormBlocState<SuccessResponse, FailureResponse>
Returns a FormBlocUpdatingFields state with the properties of the current state.
valueListOf<T>(String name) List<T>?
valueMapListOf<T>(String name) List<Map<String, T>>?
valueMapOf<T>(String name) Map<String, T>?
valueOf<T>(String name) → T?
Returns the value of FieldBloc that has this name.

Operators

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