ValidaDuration class
Specification of the validation that should be executed over a given Duration
- Inheritance
-
- Object
- ValidaField<
Duration> - ValidaDuration
- Implemented types
Constructors
-
ValidaDuration({Duration? min, Duration? max, List<
ValidaError> customValidate(Duration)?, String? customValidateName, ValidaComparison<Duration> ? comp}) -
const
-
ValidaDuration.fromJson(Map<
String, Object?> map) -
factory
Properties
-
comp
→ ValidaComparison<
Duration> ? -
final
-
customValidate
→ List<
ValidaError> Function(Duration)? -
final
- customValidateName → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- max → Duration?
-
final
- min → Duration?
-
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>