v4 method Null safety

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

v4() Generates a RNG version 4 UUID

By default it will generate a string based mathRNG, and will return a string. 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

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