v8 method

String v8(
  1. {V8Options? config}
)

Generates a draft time-based version 8 UUID

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

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

String v8({V8Options? config}) {
  return UuidV8(goptions: goptions).generate(options: config);
}