toString method

  1. @override
String toString()
override

Returns the string representation of this UUID as specified by RFC 4122.

Implementation

@override
String toString() {
  final encoded = Hex.encoder.convert(_byteData);
  return [
    encoded.substring(0, 8),
    encoded.substring(8, 12),
    encoded.substring(12, 16),
    encoded.substring(16, 20),
    encoded.substring(20),
  ].join('-');
}