parse static method
Parses the provided uuid into a list of byte values as a List<int>.
Can optionally be provided a buffer to write into and
a positional offset for where to start inputting into the buffer.
Throws FormatException if the UUID is invalid. Optionally you can set
validate to false to disable validation of the UUID before parsing.
Set noDashes to true when parsing a 32-character UUID without dashes.
Example parsing a UUID string
var bytes = uuid.parse('797ff043-11eb-11e1-80d6-510998755d10');
// bytes-> [121, 127, 240, 67, 17, 235, 17, 225, 128, 214, 81, 9, 152, 117, 93, 16]
Implementation
static List<int> parse(
String uuid, {
List<int>? buffer,
int offset = 0,
bool validate = true,
ValidationMode validationMode = ValidationMode.strictRFC9562,
bool noDashes = false,
}) {
return UuidParsing.parse(
uuid,
buffer: buffer,
offset: offset,
validate: validate,
validationMode: validationMode,
noDashes: noDashes,
);
}