isValidUUID static method

bool isValidUUID({
  1. String fromString = '',
  2. Uint8List? fromByteList,
  3. ValidationMode validationMode = ValidationMode.strictRFC4122,
  4. bool noDashes = false,
})

Validates the provided uuid to make sure it has all the necessary components and formatting and returns a bool You can choose to validate from a string or from a byte list based on which parameter is passed.

Implementation

static bool isValidUUID(
    {String fromString = '',
    Uint8List? fromByteList,
    ValidationMode validationMode = ValidationMode.strictRFC4122,
    bool noDashes = false}) {
  return UuidValidation.isValidUUID(
      fromString: fromString,
      fromByteList: fromByteList,
      validationMode: validationMode,
      noDashes: noDashes);
}