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://www.ietf.org/archive/id/draft-peabody-dispatch-new-uuid-format-01.html#name-uuidv7-layout-and-bit-order

Implementation

UuidValue v8obj({V8Options? config}) {
  return UuidValue.fromString(v8(config: config));
}