generateID function
Implementation
String generateID(int n) {
const chars = 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890';
Random rnd = Random();
return String.fromCharCodes(
Iterable.generate(
n,
(_) => chars.codeUnitAt(
rnd.nextInt(chars.length),
),
),
);
}