InputFieldBlocState<Value, ExtraData> class

Inheritance

Constructors

InputFieldBlocState({required bool isValueChanged, required Value initialValue, required Value updatedValue, required Value value, required Object? error, required bool isDirty, required Suggestions<Value>? suggestions, required bool isValidated, required bool isValidating, FormBloc? formBloc, required String name, List additionalProps = const <dynamic>[], dynamic toJson(Value value)?, ExtraData? extraData})

Properties

canShowError → bool
Indicates if this state has error and is not initial.
no setterinherited
canShowIsValidating → bool
Indicates if this state is validating and is not initial.
no setterinherited
error → Object?
The current error of this state.
finalinherited
extraData → ExtraData?
Extra data that contains the data you added when you created the field bloc or use SingleFieldBloc.updateExtraData.
finalinherited
formBloc → FormBloc?
The current FormBloc that contains this FieldBloc.
finalinherited
hasDirt → bool
no setterinherited
hasError → bool
Indicates if error is not null.
no setterinherited
hasFormBloc → bool
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
hasInitialValue → bool
Indicate if this field has value from FieldBloc.updateInitialValue method.
no setterinherited
hasUpdatedValue → bool
Indicate if this field has value from FieldBloc.updateValue method.
no setterinherited
hasValue → bool
Indicates if value is not null.
no setterinherited
initialValue → Value
finalinherited
isDirty → bool
Indicate if this field was value updated by SingleFieldBloc.changeValue / SingleFieldBloc.updateValue or receive a external validation by SingleFieldBloc.validate.
finalinherited
isInitial → bool
no setterinherited
isValid → bool
Indicates if this state not has error (which means that the error is not null) and not is validating and is validated
no setterinherited
isValidated → bool
Indicate if value was checked with the validators of the FieldBloc.
finalinherited
isValidating → bool
Indicate if value is is being verified with any async validator of the FieldBloc.
finalinherited
isValueChanged → bool
Returns true when the value has been changed by FieldBloc.changeValue.
finalinherited
name → String
It is the string that identifies the FieldBloc.
finalinherited
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
suggestions → Suggestions<Value>?
Function that returns a list of suggestions which can be used to update the value.
finalinherited
updatedValue → Value
finalinherited
value → Value
The current value of this state.
finalinherited

Methods

copyWith({bool? isValueChanged, Param<Value>? initialValue, Param<Value>? updatedValue, Param<Value>? value, Param<Object?>? error, bool? isDirty, Param<Suggestions<Value>?>? suggestions, bool? isValidated, bool? isValidating, Param<FormBloc?>? formBloc, Param<ExtraData?>? extraData}) → InputFieldBlocState<Value, ExtraData>
Returns a copy of the current state by changing the values that are passed as parameters.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Object?
Transform value in a JSON value. By default returns value, but you can set in the constructor of the FieldBloc
inherited
toString([String extra = '']) → String
A string representation of this object.
inherited

Operators

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