isUUID function

bool isUUID(
  1. String str
)

Checks if the string is a valid UUID (versions 1, 3, 4, or 5).

Returns true if the string matches the UUID format, otherwise returns false.

Example:

isUUID('123e4567-e89b-12d3-a456-426614174000'); // true
isUUID('invalid-uuid'); // false

Implementation

bool isUUID(String str) => _isUUID(str);