v8obj method

UuidValue v8obj({
  1. V8Options? config,
})

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

By default it will generate a string based off current Unix epoch time in milliseconds, and will return it as a UuidValue object.

The first argument is a V8Options 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 v8obj({V8Options? config}) {
  return UuidValue.fromString(v8(config: config));
}