parseHex128AsByteList static method

Uint8List parseHex128AsByteList(
  1. String uuid, {
  2. List<int>? buffer,
  3. int offset = 0,
  4. bool validate = true,
  5. bool noDashes = false,
})

Parses the provided uuid into a list of byte values as a Uint8List. 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 hexadecimal format is invalid. UUID version and variant bits are not validated. Optionally you can set validate to false to disable validation of the UUID before parsing. Set noDashes to true when parsing 32 hexadecimal characters without dashes.

Implementation

static Uint8List parseHex128AsByteList(
  String uuid, {
  List<int>? buffer,
  int offset = 0,
  bool validate = true,
  bool noDashes = false,
}) {
  return Uint8List.fromList(
    parseHex128(
      uuid,
      buffer: buffer,
      offset: offset,
      validate: validate,
      noDashes: noDashes,
    ),
  );
}