# UuidValue.withValidation constructor

UuidValue.withValidation(

1. String uuid, [
2. ValidationMode validationMode = ValidationMode.strictRFC9562,
3. bool noDashes = false

])

withValidation() creates a UuidValue from a `uuid` string. Optionally, you can provide a `validationMode` to use when validating the uuid string. Throws FormatException if the UUID is invalid.

## Implementation

    factory UuidValue.withValidation(String uuid,
        [ValidationMode validationMode = ValidationMode.strictRFC9562,
        bool noDashes = false]) {
      final uuidValue = UuidValue.fromString(uuid);
      uuidValue.validate(validationMode, noDashes);
      return uuidValue;
    }