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