radToDeg function Null safety

double radToDeg(
  1. double rad
)

Converts a value rad specified in radians to degrees.

Implementation

double radToDeg(double rad) {
  return rad / pi * 180;
}