ValidaField<T> class
abstract
Interface for validators which are fields of a class
- Implemented types
-
- ValidaCustom<
T>
- ValidaCustom<
- Implementers
Constructors
- ValidaField()
-
const
Properties
-
customValidate
→ List<
ValidaError> Function(T)? -
no setterinherited
- customValidateName → String?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- variantType → ValidaFieldType
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
-
when<
_T> ({required _T string(ValidaString), required _T num(ValidaNum), required _T date(ValidaDate), required _T duration(ValidaDuration), required _T list(ValidaList), required _T map(ValidaMap), required _T set(ValidaSet)}) → _T
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- fieldsSerde → const SerdeType
- variantTypeString → const String