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://www.ietf.org/archive/id/draft-peabody-dispatch-new-uuid-format-01.html#name-uuidv7-layout-and-bit-order

Implementation

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