v4obj method

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

v4obj() Generates a RNG version 4 UUID

By default it will generate a string based mathRNG, and will return a UuidValue object. If you wish to use crypto-strong RNG, pass in UuidUtil.cryptoRNG

The first argument is an options map that takes various configuration options detailed in the readme.

http://tools.ietf.org/html/rfc4122.html#section-4.4

Implementation

UuidValue v4obj({Map<String, dynamic>? options}) {
  var uuid = v4(options: options);
  return UuidValue(uuid);
}