UuidUtils class

Utility class for UUID validation and manipulation.

Provides methods to validate UUID strings in both standard (with hyphens) and compact (without hyphens) formats.

Example usage:

UuidUtils.isUUID('123e4567-e89b-12d3-a456-426614174000'); // true
UuidUtils.isUUID('123e4567e89b12d3a456426614174000'); // true
UuidUtils.isUUID('not-a-uuid'); // false

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

addHyphens(String? uuid) String?
Adds hyphens to a 32-character UUID string to create the standard format.
isUUID(String? uuid) bool
Validates if the given string is a valid UUID.
removeHyphens(String? uuid) String?
Removes hyphens from a UUID string to create the compact format.