NumValidatorExtensions<T> extension
Methods
-
isDouble([String? message])
→ EzValidator<T>
-
Checks if the value is a double
message
is the message to return if the validation fails
-
isInt([String? message])
→ EzValidator<T>
-
Checks if the value is an integer
message
is the message to return if the validation fails
-
max(num max, [String? message])
→ EzValidator<T>
-
Checks if the value is a maximum of max
message
is the message to return if the validation fails
-
min(num min, [String? message])
→ EzValidator<T>
-
Checks if the value is a minimum of min
message
is the message to return if the validation fails
-
negative([String? message])
→ EzValidator<T>
-
Checks if the value is negative
message
is the message to return if the validation fails
-
notNumber([String? message])
→ EzValidator<T>
-
Checks if the value is not a number
message
is the message to return if the validation fails
-
number([String? message])
→ EzValidator<T>
-
Checks if the value is a number
message
is the message to return if the validation fails
-
positive([String? message])
→ EzValidator<T>
-
Checks if the value is between min and max
message
is the message to return if the validation fails