ip method
Checks if the value is an ipv4
message
is the message to return if the validation fails
Implementation
EzValidator<T> ip([String? message]) => addValidation((v, [_]) {
if (v is String) {
return ipv4RegExp.hasMatch(v)
? null
: message ?? EzValidator.globalLocale.ip(v, label);
}
return 'Invalid type for ip validation';
});