UUIDValidationController constructor
UUIDValidationController({})
Implementation
UUIDValidationController(
{dynamic version, String message = 'Invalid UUID', bool required = false})
: super(
message: message,
isValid: ({controller}) {
String? textValue = controller?.rawValue?.toString();
if (!required && TextUtils.isEmpty(textValue)) return true;
return Validators.isUUID(textValue, version);
});