fromDegrees static method

CropRotation? fromDegrees(
  1. int degrees
)

Implementation

static CropRotation? fromDegrees(final int degrees) {
  for (final CropRotation rotation in CropRotation.values) {
    if (rotation.degrees == degrees) {
      return rotation;
    }
  }
  return null;
}