ValidaDate class
Specification of the validation that should be executed over a given Date
- Inheritance
-
- Object
- ValidaField<
DateTime> - ValidaDate
- Implemented types
Constructors
-
ValidaDate({String? min, String? max, List<
ValidaError> customValidate(DateTime)?, String? customValidateName, ValidaComparison<String> ? comp}) -
const
-
ValidaDate.fromJson(Map<
String, Object?> map) -
factory
Properties
-
comp
→ ValidaComparison<
String> ? -
final
-
customValidate
→ List<
ValidaError> Function(DateTime)? -
final
- customValidateName → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- max → String?
-
final
- min → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- variantType → ValidaFieldType
-
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
override
-
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 -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
fieldsSerde
→ const Map<
String, SerdeType>