is/is_uuid library

Functions

isUuid(String? str, [String? version]) bool
check if the string is a UUID (version 3, 4 or 5).