lengthToDegrees function Null safety

num lengthToDegrees(
  1. num distance,
  2. [Unit unit = Unit.kilometers]
)

Implementation

num lengthToDegrees(num distance, [Unit unit = Unit.kilometers]) {
  return radiansToDegrees(lengthToRadians(distance, unit));
}