Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

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]]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #array #dart
ADD COMMENT
Topic
Name
3+5 =