degreesToRadians function Null safety

num degreesToRadians(
  1. num degrees
)

Implementation

num degreesToRadians(num degrees) {
  num radians = degrees.remainder(360);
  return radians * pi / 180;
}