📜  flutter list.generate - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:08.683000             🧑  作者: Mango

代码示例3
new List.generate(3, (int index) => index * index); // [0, 1, 4]