generate list flutter

76

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]

Comments

Submit
0 Comments