ValidaNum class
Specification of the validation that should be executed over a given number
- Inheritance
-
- Object
- ValidaField<
num> - ValidaNum
- Implemented types
Constructors
Properties
-
comp
→ ValidaComparison<
num> ? -
final
-
customValidate
→ List<
ValidaError> Function(num)? -
final
- customValidateName → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDivisibleBy → num?
-
final
-
isIn
→ List<
num> ? -
final
- isInt → bool?
-
final
- max → num?
-
final
- min → num?
-
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>