v7obj method

UuidValue v7obj({
  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 it as a UuidValue object.

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

UuidValue v7obj({V7Options? config}) {
  return UuidValue.fromString(v7(config: config));
}