batchGenerate method

List<int> batchGenerate(
  1. int count
)

generate the id list that the length specified by the count

Implementation

List<int> batchGenerate(int count) {
  List<int> ids = [];
  for (var i = 0; i < count; i++) {
    ids.add(generate());
  }
  return ids;
}