v8g method

String v8g({
  1. V8GenericOptions? config,
})

Generates a draft time-based version 8 UUID

Takes in 128 bits (16 bytes) of custom data, and produces a valid V8 uuid. Bits 48-51 and bits 64-65 will be modified to create a valid uuid.

The first argument is a V8GenericOptions object that takes the same options as the options map.

https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis#name-uuid-version-8

Implementation

String v8g({V8GenericOptions? config}) {
  return UuidV8Generic(goptions: goptions).generate(options: config);
}