acos method Null safety

List acos(
  1. List list
)

Implementation

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