validators library

Classes

AfterValidator
Checks whether the give value is after the specified time and date. [...]
AlphaNumericValidator
Checks whether the value contains of only alphanumeric characters. [...]
AlphaValidator
Checks whether the value contains of only alpha characters. [...]
AsciiValidator
Checks whether the value contains of only ascii characters. [...]
Base64Validator
Checks whether the value is valid base64 encoding. [...]
BeforeValidator
Checks whether the give value is before the specified time and date. [...]
BlankValidator
Check that a String is empty. A null value is considered valid.
ByteLengthValidator
Checks whether the value has a byte length between $min and $max. [...]
CreditCardNumberValidator
Checks whether the value is a valid credit card number. [...]
DateTimeBaseValidator
DecimalMaxValidator
Check that the value being validated represents a Decimal number. and has a value less than or equal to the maximum value specified. [...]
DecimalMinValidator
Check that the value being validated represents a Decimal number. and has a value greater than or equal to the maximum value specified. [...]
DigitsValidator
Checks that the Decimal value being validated matches the integer and fraction lengths. [...]
DivisibleByValidator
Checks whether the provided number is divisible by value. [...]
DurationMaxValidator
Checks whether the Duration value does not last longer than the duration specified. [...]
DurationMinValidator
Checks whether the Duration value is not shorter than the duration specified. [...]
EmailValidator
Checks whether the value is a valid email address. [...]
EqualToValidator
Checks whether the value is equal to the value being tested. [...]
FieldMatchValidator<ValueType>
Check that the baseField matches the matchField. [...]
FqdnValidator
Checks whether the value is a valid fully qualified domain name. [...]
FutureOrPresentValidator
Checks whether the value being checked is within the future or present. [...]
GreaterThanOrEqualValidator
Checks if the value being tested is greater than or equal to value. [...]
GreaterThanValidator
Checks if the value being tested is greater than value. [...]
HexadecimalValidator
Checks if the value is a valid hexadecimal. [...]
HexColorValidator
Checks if the value is a valid hex color. [...]
IdenticalToValidator
Checks whether the value being tested is identical to value [...]
InFutureValidator
Checks whether the value being checked is within the future. [...]
IpValidator
Checks if the value is a valid ip address. [...]
ISBNValidator
Checks if the value is a valid ISBN number. [...]
IsEmptyValidator
Check that a value is empty. [...]
IsFalseValidator
Check that the validated value is false. [...]
IsTrueValidator
Check that the validated value is true. [...]
JsonValidator
Checks if the value is a valid JSON string. [...]
LessThanOrEqualValidator
Checks if the value being tested is less than or equal to value. [...]
LessThanValidator
Checks if the value being tested is less than value. [...]
LowercaseValidator
Checks if the value is in all lowercase. [...]
MaxValidator
Checks if the value being tested is less than or equal to value. [...]
MinValidator
Checks if the value being tested is greater than or equal to value. [...]
MongoIdValidator
Checks if the value is a valid mongo id. [...]
NegativeOrZeroValidator
Checks whether the value is negative or zero. [...]
NegativeValidator
Checks whether the value is negative. [...]
NotBlankValidator
Check that a String is not null nor empty after removing any leading or trailing whitespace.
NotEmptyValidator
Check that a value is not empty and not null. [...]
NotEqualToValidator
Checks whether the value is not equal to the value being tested. [...]
NotIdenticalToValidator
Checks whether the value being tested is not identical to value [...]
NotNullValidator
Check that a value is not null.
NullValidator
Check that a value is null.
NumericValidator
Checks
PastOrPresentValidator
Checks whether the value being checked is within the past or present. [...]
PastValidator
Checks whether the value being checked is within the past. [...]
PatternValidator
PositiveOrZeroValidator
Checks whether the value is positive or zero. [...]
PositiveValidator
Checks whether the value is positive. [...]
RangeValidator
Check that a given object is between some minimum and maximum. [...]
SizeValidator
Checks that the length or value is between min and max. [...]
TimeUnitBaseValidator
TypeValidator<T>
UniqueValidator
Validates that the provided collection only contains unique items. [...]
UppercaseValidator
Checks if the value is in all uppercase. [...]
UrlValidator
Checks whether the value is a valid url. [...]
UuidValidator
Checks whether the value is a valid UUID. [...]
ValidValidator
Checks whether the validated object is valid. [...]

Constants

maxFraction → const int
20
timeUnits → const List<String>
const ['year', 'month', 'day', 'hour', 'minute', 'second', 'millisecond', 'microsecond']

Properties

basicValidators → List<Type>
final
classLevelValidators → List<Type>
final
collectionValidators → List<Type>
final
comparisonValidators → List<Type>
final
dateValidators → List<Type>
final
mixedValidators → List<Type>
final
numberValidators → List<Type>
final
stringValidators → List<Type>
final
validators → List<List<Type>>
final

Enums

TimeUnit