parse method - Uuid class - uuid library - Dart API
Description: API docs for the parse method from the Uuid class, for the Dart programming language.

# parse static method

List<int> parse(

1. String uuid, {
2. List<int>? buffer,
3. int offset = 0,
4. bool validate = true,
5. ValidationMode validationMode = ValidationMode.strictRFC4122,

})

Parses the provided `uuid` into a list of byte values as a List. 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.

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.strictRFC4122,
    }) {
      return UuidParsing.parse(uuid,
          buffer: buffer,
          offset: offset,
          validate: validate,
          validationMode: validationMode);
    }