Answers for "2d list in 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
0

2d list in dart

//Declare and initialize a matrix x having 
 //m rows and n columns, containing real numbers.

var x = new List.generate(m, (_) => new List(n));
Posted by: Guest on June-23-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language