getImageRotation method

int getImageRotation()

Implementation

int getImageRotation() {
  Map<DeviceOrientation, int> turns = {
    DeviceOrientation.portraitUp: 90,
    DeviceOrientation.landscapeRight: 180,
    DeviceOrientation.portraitDown: 270,
    DeviceOrientation.landscapeLeft: 0,
  };
  return turns[_getApplicableOrientation()]!;
}