# isValidUuid static method

bool isValidUuid(

1. String uuidString

)

Validates if a string is a valid UUID format.

Parameters:

- `uuidString`: String to validate

Returns:

- `true` if the string is a valid UUID format
- `false` if the string is invalid

## Validation Rules

- Accepts standard format with hyphens (8-4-4-4-12)
- Accepts compact format without hyphens (32 hex digits)
- Case-insensitive validation
- Checks for proper length and hex digit format

## Example

    print(Uuid.isValidUuid('550e8400-e29b-41d4-a716-446655440000')); // true
    print(Uuid.isValidUuid('550e8400e29b41d4a716446655440000')); // true
    print(Uuid.isValidUuid('invalid-uuid')); // false
    print(Uuid.isValidUuid('')); // false

## Implementation

    static bool isValidUuid(String uuidString) {
      if (uuidString.isEmpty) return false;

      // Check standard format with hyphens
      if (_uuidRegex.hasMatch(uuidString)) return true;

      // Check compact format without hyphens
      final cleanString = uuidString.replaceAll('-', '');
      return cleanString.length == 32 && RegExp(r'^[0-9a-fA-F]{32}$').hasMatch(cleanString);
    }