generateIdentifier function
Implementation
String generateIdentifier(int length, int Function(int max) nextInt) {
return String.fromCharCodes(
Iterable.generate(
length,
(_) => _chars.codeUnitAt(
nextInt(_chars.length),
),
),
);
}