SuperFormFieldData class
Field data
All field properties are handled manually, including validation. This is true as well for touched, submitted, errors as some would expect those to operate "magically".
Constructors
-
SuperFormFieldData({required String name, required dynamic value, required bool touched, required List<
ValidationError> errors, required bool submitted}) -
const
Properties
-
errors
→ List<
ValidationError> -
Field errors, might not be adequate to current value
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Field name
final
-
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 - submitted → bool
-
Whether the field was submitted
final
- touched → bool
-
Whether the field was touched
final
- value → dynamic
-
Field's current value
final
Methods
-
copyWith(
{String? name, List< SuperFormFieldRule> ? rules, bool? touched, List<ValidationError> ? errors, bool? submitted}) → SuperFormFieldData -
copyWithValue(
{required dynamic value, String? name, List< SuperFormFieldRule> ? rules, bool? touched, List<ValidationError> ? errors, bool? submitted}) → SuperFormFieldData -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
dynamic newInitialValue) → SuperFormFieldData -
toString(
) → String -
A string representation of this object.
inherited
-
validate(
Iterable< SuperFormFieldRule> rules, {bool markSubmitted = false}) → SuperFormFieldData - Validates the field against given rules
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited