radiansToDegrees function Null safety

num radiansToDegrees(
  1. num radians
)

Implementation

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