v7obj method Null safety

UuidValue v7obj(
  1. {Map<String, dynamic>? options}
)

v7obj() Generates a draft time-based version 7 UUID

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 an options map that takes various configuration options detailed in the readme.

https://www.ietf.org/archive/id/draft-peabody-dispatch-new-uuid-format-01.html#name-uuidv7-layout-and-bit-order

Implementation

UuidValue v7obj({Map<String, dynamic>? options}) {
  return UuidValue(v7(options: options));
}