generateId static method

String generateId()

Implementation

static String generateId() {
  final rng = Random();
  const hexDigits = '0123456789abcdef';
  final codeUnits = List.generate(24, (index) => hexDigits[rng.nextInt(16)]);
  final id = codeUnits.join('');
  return id;
}