v7 method

String v7({
  1. V7Options? config,
})

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

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 V7Options object that takes the same options as the options map.

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

Implementation

String v7({V7Options? config}) {
  return UuidV7(goptions: goptions).generate(options: config);
}