generateRandomString function
Implementation
String generateRandomString(int length) {
const ch = 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890';
Random r = Random();
return String.fromCharCodes(
Iterable.generate(length, (_) => ch.codeUnitAt(r.nextInt(ch.length))));
}