ValidaString class

Specification of the validation that should be executed over a given string

Inheritance
Implemented types

Constructors

ValidaString({List<String>? isIn, int? maxLength, int? minLength, bool? isPhone, bool? isEmail, bool? isDate, bool? isTime, bool? isBool, bool? isNum, bool? isUrl, UUIDVersion? isUUID, bool? isCurrency, bool? isJSON, String? matches, String? contains, bool? isAlpha, bool? isAlphanumeric, bool? isLowercase, bool? isUppercase, bool? isAscii, bool? isBase64, bool? isCreditCard, int? isDivisibleBy, int? surrogatePairsLengthMin, int? surrogatePairsLengthMax, bool? isFQDN, bool? isHexadecimal, bool? isHexColor, bool? isInt, bool? isFloat, ISBNVersion? isISBN, IPVersion? isIP, List<ValidaError> customValidate(String)?, String? customValidateName})
const
ValidaString.fromJson(Map<String, Object?> map)
factory

Properties

contains String?
final
customValidate List<ValidaError> Function(String)?
final
customValidateName String?
final
hashCode int
The hash code for this object.
no setterinherited
isAlpha bool?
final
isAlphanumeric bool?
final
isAscii bool?
final
isBase64 bool?
final
isBool bool?
final
isCreditCard bool?
final
isCurrency bool?
final
isDate bool?
final
isDivisibleBy int?
final
isEmail bool?
final
isFloat bool?
final
isFQDN bool?
final
isHexadecimal bool?
final
isHexColor bool?
final
isIn List<String>?
final
isInt bool?
final
isIP IPVersion?
final
isISBN ISBNVersion?
final
isJSON bool?
final
isLowercase bool?
final
isNum bool?
final
isPhone bool?
final
isTime bool?
final
isUppercase bool?
final
isUrl bool?
final
isUUID UUIDVersion?
final
matches String?
final
maxLength int?
final
minLength int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
surrogatePairsLengthMax int?
final
surrogatePairsLengthMin int?
final
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>