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://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis#name-uuid-version-8

Implementation

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