degrees property

int get degrees

Returns the rotation in degrees cw.

Implementation

int get degrees {
  switch (this) {
    case CropRotation.up:
      return 0;
    case CropRotation.right:
      return 90;
    case CropRotation.down:
      return 180;
    case CropRotation.left:
      return 270;
  }
}