createIntMatrixWithDefault static method
Implementation
static List<List<int>> createIntMatrixWithDefault(
int rows, int cols, int defaultValue) {
final grid = List<List<int>>.generate(
rows, (i) => List<int>.generate(cols, (j) => defaultValue));
return grid;
}