deg2rad method Null safety

List deg2rad(
  1. List list
)

Implementation

List deg2rad(List list) {
  List shape = getDim(list);
  List temp = flatten(list).map((e) => (e * math.pi) / 180.0).toList();
  temp = generate(temp, shape);
  return temp;
}