StringFormInput<V, E extends ValidationError> class
abstract
A convenient base class for string-based input, which covers most of the practical use cases.
- Inheritance
-
- Object
- FormInput<
V, String, E> - BaseFormInput<
V, String, E> - StringFormInput
- Available extensions
- Annotations
-
- @immutable
Constructors
- StringFormInput.dirty(dynamic id, dynamic value)
-
const
- StringFormInput.pristine(dynamic id, dynamic value)
-
const
Properties
-
error
→ Option<
E> -
Available on Validatable<
V, E> , provided by the ValidatableExtension extensionno setter - errorOrNull → E?
-
Available on Validatable<
V, E> , provided by the ValidatableExtension extensionno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isPristine → bool
-
If the FormInput is in pristine state (hasn't been touched/modified).
Typically when the
FormInput
is initially created, it is created using theFormInput.pristine
constructor to signify that the user has not modified it.finalinherited - isValid → bool
-
Available on Validatable<
V, E> , provided by the ValidatableExtension extensionno setter - name → String
-
finalinherited
-
result
→ Either<
E, V> -
no setterinherited
- resultOrNull → V?
-
Available on Validatable<
V, E> , provided by the ValidatableExtension extensionno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
The value of the given FormInput.
finalinherited
Methods
-
convert(
String value) → V -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
String value) → Either< E, V> -
A pure function that validates the given
value
and returns the result asEither<E, V>
, encoding either a corresponding model value or an error message.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited