generateUUID static method

String generateUUID()

Computes a RFC4122 Version 4 complied Universally Unique Identifier (UUID).

Implementation

static String generateUUID() {
  final uuid = const Uuid().v4();
  // .toLowerCase() here flattens concatenated strings to save heap memory space.
  return uuid.toLowerCase();
}