UuidV4 constructor Null safety
Implementation
factory UuidV4({Map<String, dynamic>? options}) {
options ??= {};
// Set the globalRNG function to mathRNG with the option to set an alternative globally
List gPositionalArgs = options['gPositionalArgs'] ?? [];
Map<Symbol, dynamic> gNamedArgs = options['gNamedArgs'] ?? const <Symbol, dynamic>{};
Function grng = (options['grng'] != null)
? () => Function.apply(options!['grng'], gPositionalArgs, gNamedArgs)
: UuidUtil.mathRNG;
return UuidV4._(grng);
}