differenceDegrees method Null safety

double differenceDegrees(
  1. double a,
  2. double b
)

Distance of two points on a circle, represented using degrees.

Implementation

static double differenceDegrees(double a, double b) {
  return 180.0 - ((a - b).abs() - 180.0).abs();
}