unparse static method

String unparse(
  1. List<int> buffer, {
  2. int offset = 0,
})

Unparses a buffer of bytes and outputs a proper UUID string. An optional offset is allowed if you want to start at a different point in the buffer. Throws an exception if the buffer does not have a length of 16

Example parsing and unparsing a UUID string

var uuidString = uuid.unparse(bytes);
// uuidString -> '797ff043-11eb-11e1-80d6-510998755d10'

Implementation

static String unparse(List<int> buffer, {int offset = 0}) {
  return UuidParsing.unparse(buffer, offset: offset);
}