Answers for "array 2d dart"

1

array 2d dart

//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]]
Posted by: Guest on November-10-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language