validate method - UuidValue class - uuid_value library - Dart API
Description: API docs for the validate method from the UuidValue class, for the Dart programming language.

# validate method

void validate([

1. ValidationMode validationMode = ValidationMode.strictRFC9562,
2. bool noDashes = false

])

validate() validates the internal string representation of the uuid. Optionally, you can provide a `validationMode` to use when validating the uuid string. Throws FormatException if the UUID is invalid.

## Implementation

    void validate(
        [ValidationMode validationMode = ValidationMode.strictRFC9562,
        bool noDashes = false]) {
      UuidValidation.isValidOrThrow(
          fromString: uuid, validationMode: validationMode, noDashes: noDashes);
    }