isUUID function
check if the string is a UUID (version 3, 4 or 5).
Implementation
bool isUUID(String? str, {UUIDVersion version = UUIDVersion.any}) {
final pat = _uuid[version];
return pat != null && pat.hasMatch(str!.toUpperCase());
}
check if the string is a UUID (version 3, 4 or 5).
bool isUUID(String? str, {UUIDVersion version = UUIDVersion.any}) {
final pat = _uuid[version];
return pat != null && pat.hasMatch(str!.toUpperCase());
}