angle property

double get angle

Rotation of the symbol in the source image, in degrees.

Implementation

double get angle {
  if (corners.length < 2) return 0;
  final Offset delta = corners[1] - corners[0];
  return atan2(delta.dy, delta.dx) * 180 / pi;
}