generateUuid function
Implementation
String generateUuid(
int length, {
String text = "0123456789abcdefghijklmnopqrstuvwxyz",
}) {
// final Random random = Random();
return List.generate(length, (index) {
final String data_text = text[Random().nextInt(text.length)];
if (Random().nextBool()) {
return data_text.toUpperCase();
} else {
return data_text;
}
}).join("");
}