Flutter List. Generate
final items = List<String>.generate(10000, (i) => "Item $i");
Doubtful Dotterel
final items = List<String>.generate(10000, (i) => "Item $i");
List<int>.generate(3, (int index) => index * index); // [0, 1, 4]
new List<int>.generate(3, (int index) => index * index); // [0, 1, 4]