isUuid static method
Returns whether the provided input
can be parsed as a valid UUID.
If this method returns false
, Uuid.parse would throw an exception.
Implementation
static bool isUuid(String input) {
return input.length == 36 && _isUuid.matchAsPrefix(input) != null;
}