username static method

String username()

Generates a random username in the format: adjective_noun123

Implementation

static String username() {
  final adjective = _adjectives[_random.nextInt(_adjectives.length)];
  final noun = _nouns[_random.nextInt(_nouns.length)];
  final number = _random.nextInt(900) + 100; // 100-999
  return '${adjective}_${noun}$number';
}