generateRandomString function
Implementation
String generateRandomString(int length) {
final random = Random();
const availableChars =
'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890';
final randomString = List.generate(length,
(index) => availableChars[random.nextInt(availableChars.length)]).join();
return randomString;
}