fill method
Just like zeros()
and ones()
this function will return a new array of given shape, with given object(anything btw strings too)
var fill = m2d.fill(2,2,true);
print(fill);
// [[true,true],[true,true]]
Implementation
List fill(int row, int cols, value) =>
List.filled(row, value).map((e) => List.filled(cols, value)).toList();