isUuid property
bool
get
isUuid
Checks if the string is a valid UUID.
Implementation
bool get isUuid {
if (isEmptyOrNull) return false;
return RegExp(
r'^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$',
).hasMatch(this!);
}