degToRad function Null safety

double degToRad(
  1. double deg
)

Converts a value deg specified in degrees to radians.

Implementation

double degToRad(double deg) {
  return pi * deg / 180;
}