angleDegrees static method
Calculates the angle between two points in degrees.
point1 is the first point.
point2 is the second point.
Implementation
static double angleDegrees(Offset point1, Offset point2) {
return angle(point1, point2) * 180 / math.pi;
}