round method Null safety

List round(
  1. List list
)

Implementation

List round(List list) {
  List shape = getDim(list);
  List temp = flatten(list).map((e) => e.round()).toList();
  temp = generate(temp, shape);
  return temp;
}