StringValidatorExtensions<T> extension
Methods
-
email([String? message])
→ EzValidator<T>
-
Checks if the value is an email address
message
is the message to return if the validation fails
-
ip([String? message])
→ EzValidator<T>
-
Checks if the value is an ipv4
message
is the message to return if the validation fails
-
ipv6([String? message])
→ EzValidator<T>
-
Checks if the value is an ipv6 address
message
is the message to return if the validation fails
-
lowerCase([String? message])
→ EzValidator<T>
-
Checks if the value is a lowercase
message
is the message to return if the validation fails
-
matches(RegExp reg, [String? message])
→ EzValidator<T>
-
match the value with
reg
message
is the message to return if the validation fails
-
phone([String? message])
→ EzValidator<T>
-
Checks if the value is a phone number
message
is the message to return if the validation fails
-
upperCase([String? message])
→ EzValidator<T>
-
Checks if the value is an uppercase
message
is the message to return if the validation fails
-
url([String? message])
→ EzValidator<T>
-
Checks if the value is a url
message
is the message to return if the validation fails
-
uuid([String? message])
→ EzValidator<T>
-
Checks if the value is a UUID
message
is the message to return if the validation fails