v8gobj method

UuidValue v8gobj(
  1. {V8GenericOptions? config}
)

Generates a draft time-based version 8 UUID as a UuidValue object

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. It will return it as a UuidValue object.

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

UuidValue v8gobj({V8GenericOptions? config}) {
  return UuidValue.fromString(v8g(config: config));
}