UuidValue.withValidation constructor - UuidValue - uuid_value library - Dart API
Description: API docs for the UuidValue.withValidation constructor from Class UuidValue from the uuid_value library, for the Dart programming language.

# 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;
    }