v6obj method

UuidValue v6obj({
  1. V6Options? config,
})

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

By default it will generate a string based off current Gregorian Epoch time in milliseconds, and will return it as a UuidValue object.

The first argument is a V6Options object that takes the same options as the options map. This is the preferred way to pass options.

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

Implementation

UuidValue v6obj({V6Options? config}) {
  return UuidValue.fromString(v6(config: config));
}