TextFieldBlocState<ExtraData> class

Inheritance

Constructors

TextFieldBlocState({required bool isValueChanged, required String initialValue, required String updatedValue, required String value, required Object? error, required bool isDirty, required Suggestions<String>? suggestions, required bool isValidated, required bool isValidating, FormBloc? formBloc, required String name, dynamic toJson(String 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 String
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<String>?
Function that returns a list of suggestions which can be used to update the value.
finalinherited
updatedValue String
finalinherited
value String
The current value of this state.
finalinherited
valueToDouble double?
Parse the value to double. if the value is a double returns a double, else returns null.
no setter
valueToInt int?
Parse the value to int. if the value is an int returns an int, else returns null.
no setter

Methods

copyWith({bool? isValueChanged, Param<String>? initialValue, Param<String>? updatedValue, Param<String>? value, Param<Object?>? error, bool? isDirty, Param<Suggestions<String>?>? suggestions, bool? isValidated, bool? isValidating, Param<FormBloc?>? formBloc, Param<ExtraData?>? extraData}) TextFieldBlocState<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