v8 method Null safety

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

v8() Generates a draft time-based version 8 UUID

By default it will generate a string based off current Unix epoch time in milliseconds, and will return a string.

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

String v8({Map<String, dynamic>? options}) {
  return _uuidv8.generate(options: options);
}