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

# UuidValue constructor Null safety

UuidValue(

1. String uuid,
2. [bool validate = true,
3. ValidationMode validationMode = ValidationMode.strictRFC4122]

)

UuidValue() Constructor for creating a uuid value.

Takes in a string representation of a `uuid` to wrap.

Optionally , you can disable the validation check in the constructor by setting `validate` to `false`.

## Implementation

    factory UuidValue(String uuid,
        [bool validate = true,
        ValidationMode validationMode = ValidationMode.strictRFC4122]) {
      if (validate) {
        Uuid.isValidOrThrow(fromString: uuid, validationMode: validationMode);
      }

      return UuidValue._(uuid.toLowerCase());
    }