int a = 3; int b = 3; var tList = List.generate(a, (i) => List(b), growable: false); print(tList); // [[null, null, null], [null, null, null], [null, null, null]]