📜  array 2d dart 代码示例

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

代码示例1
//Array 2d Dart
int row = 3;
int col = 4;

var twoDList = List.generate(row, (i) => List(col), growable: false);

//For fill;
twoDList[0][1] = "deneme";

print(twoDList);

// [[null, deneme, null, null], [null, null, null, null], [null, null, null, null]]