generateList static method

List<String> generateList(
  1. String emailOrName, {
  2. List<String> adjectives = const [],
  3. DateTime? date,
  4. int length = 1,
})

Implementation

static List<String> generateList(String emailOrName, {List<String> adjectives = const [], DateTime? date, int length = 1}) {
  var usernames = <String>[];
  for (var i = 0; i < 10; i++) {
    usernames.add(generate(emailOrName, adjectives: adjectives, date: date));
  }
  return usernames;
}