v6 method

String v6({
  1. V6Options? config,
})

Generates a draft time-based version 6 UUID

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

The first argument is a V6Options object that takes the same options as the options map.

https://datatracker.ietf.org/doc/html/draft-ietf-uuidrev-rfc4122bis#name-uuid-version-6

Implementation

String v6({V6Options? config}) {
  return UuidV6(goptions: goptions).generate(options: config);
}